mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-13 11:32:20 -05:00
Fix for "TypeError: 'NoneType' object is unsubscriptable" in Indexer API code
This commit is contained in:
parent
95e928bfcb
commit
9685696e36
@ -728,7 +728,7 @@ class Tvdb:
|
||||
log().debug('Getting season banners for %s' % (sid))
|
||||
bannersEt = self._getetsrc(self.config['url_seriesBanner'] % (sid))
|
||||
banners = {}
|
||||
for cur_banner in bannersEt['banner']:
|
||||
for cur_banner in bannersEt['banner'] if bannersEt else []:
|
||||
bid = cur_banner['id']
|
||||
btype = cur_banner['bannertype']
|
||||
btype2 = cur_banner['bannertype2']
|
||||
@ -785,8 +785,7 @@ class Tvdb:
|
||||
actorsEt = self._getetsrc(self.config['url_actorsInfo'] % (sid))
|
||||
|
||||
cur_actors = Actors()
|
||||
if actorsEt:
|
||||
for curActorItem in actorsEt["actor"]:
|
||||
for curActorItem in actorsEt["actor"] if actorsEt else []:
|
||||
curActor = Actor()
|
||||
for k, v in curActorItem.items():
|
||||
k = k.lower()
|
||||
|
Loading…
Reference in New Issue
Block a user