Fix to add anime to global proper searches

This commit is contained in:
Adam 2015-09-28 10:05:20 +08:00
parent 4136eed132
commit 77bfd93729

View file

@ -257,7 +257,8 @@ class TVCache:
def listPropers(self, date=None, delimiter='.'): def listPropers(self, date=None, delimiter='.'):
myDB = self.get_db() 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: if date != None:
sql += ' AND time >= ' + str(int(time.mktime(date.timetuple()))) sql += ' AND time >= ' + str(int(time.mktime(date.timetuple())))