1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 11:02:21 -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') 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]

View File

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