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:
parent
2ab436b764
commit
e62d5ad50c
@ -781,18 +781,19 @@ class Tvdb:
|
|||||||
actorsEt = self._getetsrc(self.config['url_actorsInfo'] % (sid))
|
actorsEt = self._getetsrc(self.config['url_actorsInfo'] % (sid))
|
||||||
|
|
||||||
cur_actors = Actors()
|
cur_actors = Actors()
|
||||||
for curActorItem in actorsEt["actor"]:
|
if actorsEt:
|
||||||
curActor = Actor()
|
for curActorItem in actorsEt["actor"]:
|
||||||
for k, v in curActorItem.items():
|
curActor = Actor()
|
||||||
k = k.lower()
|
for k, v in curActorItem.items():
|
||||||
if v is not None:
|
k = k.lower()
|
||||||
if k == "image":
|
if v is not None:
|
||||||
v = self.config['url_artworkPrefix'] % (v)
|
if k == "image":
|
||||||
else:
|
v = self.config['url_artworkPrefix'] % (v)
|
||||||
v = self._cleanData(v)
|
else:
|
||||||
curActor[k] = v
|
v = self._cleanData(v)
|
||||||
cur_actors.append(curActor)
|
curActor[k] = v
|
||||||
self._setShowData(sid, '_actors', cur_actors)
|
cur_actors.append(curActor)
|
||||||
|
self._setShowData(sid, '_actors', cur_actors)
|
||||||
|
|
||||||
def _getShowData(self, sid, language, seriesSearch=False):
|
def _getShowData(self, sid, language, seriesSearch=False):
|
||||||
"""Takes a series ID, gets the epInfo URL and parses the TVDB
|
"""Takes a series ID, gets the epInfo URL and parses the TVDB
|
||||||
|
Loading…
Reference in New Issue
Block a user