Fix tvdb absolute searching

This commit is contained in:
Zoe Roux 2024-05-30 00:04:16 +02:00
parent 71b5a04027
commit 7ffc392492
No known key found for this signature in database

View File

@ -179,7 +179,7 @@ class TVDB(Provider):
ret = next( ret = next(
filter( filter(
(lambda x: x["seasonNumber"] == 1 and x["number"] == absolute) (lambda x: x["absoluteNumber"] == absolute)
if absolute is not None if absolute is not None
else ( else (
lambda x: x["seasonNumber"] == season and x["number"] == episode_nbr lambda x: x["seasonNumber"] == season and x["number"] == episode_nbr