Fix for TypeError: list indices must be integers, not str in Indexer API code

This commit is contained in:
echel0n 2014-09-14 18:24:08 -07:00
parent f211a7eccf
commit 442631105b
3 changed files with 3 additions and 3 deletions

View file

@ -842,7 +842,7 @@ class Tvdb:
) )
# check and make sure we have data to process and that it contains a series name # check and make sure we have data to process and that it contains a series name
if seriesInfoEt is None or 'seriesname' not in seriesInfoEt['series']: if not len(seriesInfoEt) or (isinstance(seriesInfoEt, dict) and 'seriesname' not in seriesInfoEt['series']):
return False return False
for k, v in seriesInfoEt['series'].items(): for k, v in seriesInfoEt['series'].items():

View file

@ -592,7 +592,7 @@ class TVRage:
) )
# check and make sure we have data to process and that it contains a series name # check and make sure we have data to process and that it contains a series name
if seriesInfoEt is None or 'seriesname' not in seriesInfoEt: if not len(seriesInfoEt) or (isinstance(seriesInfoEt, dict) and 'seriesname' not in seriesInfoEt['series']):
return False return False
for k, v in seriesInfoEt.items(): for k, v in seriesInfoEt.items():

View file

@ -3628,7 +3628,7 @@ class Home(MainHandler):
show_message = 'This show is in the process of being downloaded - the info below is incomplete.' show_message = 'This show is in the process of being downloaded - the info below is incomplete.'
elif sickbeard.showQueueScheduler.action.isBeingUpdated(showObj): # @UndefinedVariable elif sickbeard.showQueueScheduler.action.isBeingUpdated(showObj): # @UndefinedVariable
show_message = 'The information below is in the process of being updated.' show_message = 'The information on this page is in the process of being updated.'
elif sickbeard.showQueueScheduler.action.isBeingRefreshed(showObj): # @UndefinedVariable elif sickbeard.showQueueScheduler.action.isBeingRefreshed(showObj): # @UndefinedVariable
show_message = 'The episodes below are currently being refreshed from disk' show_message = 'The episodes below are currently being refreshed from disk'