mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-04 15:12:23 -05:00
Fixed sickragetv/sickrage-issues#229 - check instance of actor or banner obj to be list and if not we throw it into one.
This commit is contained in:
parent
46bd8515c2
commit
bac95b848b
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user