Fix to stop removal message of cache items from occuring when untrue

This commit is contained in:
echel0n 2014-05-14 23:06:39 -07:00
parent 1fcfa4c70a
commit 628fe23f8d

View file

@ -65,7 +65,7 @@ def syncNameCache():
for curShow in sickbeard.showList:
for show_name in set(sickbeard.show_name_helpers.allPossibleShowNames(curShow)):
sqlResult = cacheDB.action("DELETE FROM scene_names WHERE name = ? and indexer_id = ?", [show_name, 0])
if sqlResult:
if sqlResult.rowcount > 0:
logger.log(u"Removing invalid record for [" + show_name + "] from cache ...")
break