From 628fe23f8d5ed548bfe30030ca61e612b969f5b7 Mon Sep 17 00:00:00 2001 From: echel0n Date: Wed, 14 May 2014 23:06:39 -0700 Subject: [PATCH] Fix to stop removal message of cache items from occuring when untrue --- sickbeard/name_cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sickbeard/name_cache.py b/sickbeard/name_cache.py index 34b4f414..df916ad0 100644 --- a/sickbeard/name_cache.py +++ b/sickbeard/name_cache.py @@ -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