1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-13 03:22:22 -05:00

Fix for issues getting indexerID during cache updates

This commit is contained in:
echel0n 2014-04-28 23:04:32 -07:00
parent 96a2c047a0
commit dbee4b6dbf

View File

@ -275,7 +275,11 @@ class TVCache():
logger.log(
u"Checking Indexers for Indexer ID of " + parse_result.series_name,
logger.DEBUG)
indexerResult = helpers.searchIndexerForShowID(parse_result.series_name)
# check indexers
try:indexerResult = helpers.searchIndexerForShowID(parse_result.series_name)
except:indexerResult = None
if indexerResult:
logger.log(
u"" + str(parse_result.series_name) + " was found on " + str(sickbeard.indexerApi(indexerResult[0]).name) + " with Indexer ID: " + str(indexerResult[1]), logger.DEBUG)