Private GIT

Skip to content
Snippets Groups Projects
Commit bac95b84 authored by echel0n's avatar echel0n
Browse files

Fixed sickragetv/sickrage-issues#229 - check instance of actor or banner obj...

Fixed sickragetv/sickrage-issues#229 - check instance of actor or banner obj to be list and if not we throw it into one.
parent 46bd8515
No related branches found
No related tags found
No related merge requests found
......@@ -133,7 +133,7 @@
<b>Sports: </b>
<input type="checkbox" name="sports" #if $show.sports == 1 then "checked=\"checked\"" else ""# /><br />
(check this if the show is a sporting or MMA event)<br />
(check this if the show is a sporting or MMA event and released as Show.03.02.2010 rather than Show.S02E03)<br />
<br />
<b>Anime: </b>
......
......@@ -736,7 +736,7 @@ class Tvdb:
return
banners = {}
for cur_banner in bannersEt['banner']:
for cur_banner in bannersEt['banner'] if isinstance(bannersEt['banner'], list) else [bannersEt['banner']]:
bid = cur_banner['id']
btype = cur_banner['bannertype']
btype2 = cur_banner['bannertype2']
......@@ -797,7 +797,7 @@ class Tvdb:
return
cur_actors = Actors()
for cur_actor in actorsEt['actor']:
for cur_actor in actorsEt['actor'] if isinstance(actorsEt['actor'], list) else [actorsEt['actor']]:
curActor = Actor()
for k, v in cur_actor.items():
if k is None or v is None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment