1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 02:52:20 -05:00

Merge pull request #1285 from abeloin/patch-tvrage_no_episodes

TVRage, TVdb: Check if show has episodes
This commit is contained in:
Alexandre Beloin 2015-02-15 18:24:52 -05:00
commit aa29e25aa3
2 changed files with 6 additions and 0 deletions

View File

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

View File

@ -626,6 +626,9 @@ class TVRage:
raise tvrage_showincomplete(
"Show search returned incomplete results (cannot find complete show on TVRAGE)")
if 'episodelist' not in epsEt:
return False
seasons = epsEt['episodelist']['season']
if not isinstance(seasons, list):
seasons = [seasons]