1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-04 15:12:23 -05:00

TVRage: Check if show has episodes

Check if node episodelist exist in tvrage show.
e.g. New show without episodes
This commit is contained in:
Alexandre Beloin 2015-02-05 23:02:47 -05:00
parent c62d8f2c79
commit a57d94678d

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]