From 77bfd937290b4466c5c9349afb583406ea554748 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 28 Sep 2015 10:05:20 +0800 Subject: [PATCH] Fix to add anime to global proper searches --- sickbeard/tvcache.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sickbeard/tvcache.py b/sickbeard/tvcache.py index 7c60daf6..769da921 100644 --- a/sickbeard/tvcache.py +++ b/sickbeard/tvcache.py @@ -257,7 +257,8 @@ class TVCache: def listPropers(self, date=None, delimiter='.'): myDB = self.get_db() - sql = "SELECT * FROM provider_cache WHERE name LIKE '%.PROPER.%' OR name LIKE '%.REPACK.%' AND provider = ?" + sql = "SELECT * FROM provider_cache WHERE (name LIKE '%.PROPER.%' OR name LIKE '%.REPACK.%' OR version > 1) " \ + 'AND provider = ?' if date != None: sql += ' AND time >= ' + str(int(time.mktime(date.timetuple())))