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:
commit
aa29e25aa3
@ -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]
|
||||
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user