1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 19:12:26 -05:00

Fix for nonetype being returned when trying to load data from TVDB Api for actors.

This commit is contained in:
echel0n 2014-06-01 22:21:09 -07:00
parent 2ab436b764
commit e62d5ad50c

View File

@ -781,6 +781,7 @@ class Tvdb:
actorsEt = self._getetsrc(self.config['url_actorsInfo'] % (sid)) actorsEt = self._getetsrc(self.config['url_actorsInfo'] % (sid))
cur_actors = Actors() cur_actors = Actors()
if actorsEt:
for curActorItem in actorsEt["actor"]: for curActorItem in actorsEt["actor"]:
curActor = Actor() curActor = Actor()
for k, v in curActorItem.items(): for k, v in curActorItem.items():