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())))