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:
parent
c62d8f2c79
commit
a57d94678d
|
@ -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