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