Fixed indexerid issue when searching SB for show ID

This commit is contained in:
echel0n 2014-04-30 18:34:05 -07:00
parent 880e923714
commit 85679e99f1

View file

@ -975,9 +975,10 @@ def get_show_by_name(name, useIndexer=False):
dbResult = searchDBForShow(name)
if dbResult:
foundResult = findCertainShow(sickbeard.showList, dbResult[1])
logger.log(
u"Database lookup found Indexer ID:" + str(
foundResult.indexerid) + ", using that for " + name, logger.DEBUG)
if foundResult:
logger.log(
u"Database lookup found Indexer ID:" + str(
foundResult.indexerid) + ", using that for " + name, logger.DEBUG)
if not foundResult and useIndexer:
logger.log(