1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-10-31 15:35:01 -04:00

TVDB: Check if show has episodes

This commit is contained in:
Alexandre Beloin 2015-02-06 14:29:35 -05:00
parent a57d94678d
commit b33ebc0ca5

View File

@ -875,6 +875,9 @@ class Tvdb:
log().debug('Series results incomplete') log().debug('Series results incomplete')
raise tvdb_showincomplete("Show search returned incomplete results (cannot find complete show on TVDB)") raise tvdb_showincomplete("Show search returned incomplete results (cannot find complete show on TVDB)")
if 'episode' not in epsEt:
return False
episodes = epsEt["episode"] episodes = epsEt["episode"]
if not isinstance(episodes, list): if not isinstance(episodes, list):
episodes = [episodes] episodes = [episodes]