From 9c6bb12dd1942fc5145733d2a670ecacf2dd3425 Mon Sep 17 00:00:00 2001 From: evilhero Date: Tue, 13 Dec 2016 10:15:15 -0500 Subject: [PATCH] FIX:(#1481) Legacy search of 32p gives incorrect snatches when TPSE is enabled --- mylar/rsscheck.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mylar/rsscheck.py b/mylar/rsscheck.py index d947403d..3cd8cce7 100755 --- a/mylar/rsscheck.py +++ b/mylar/rsscheck.py @@ -478,9 +478,9 @@ def torrentdbsearch(seriesname, issue, comicid=None, nzbprov=None): tresults = [] tsearch = '%' + tsearch - if mylar.ENABLE_32P: + if mylar.ENABLE_32P and nzbprov == '32P': tresults = myDB.select("SELECT * FROM rssdb WHERE Title like ? AND Site='32P'", [tsearch]) - if mylar.ENABLE_TPSE: + if mylar.ENABLE_TPSE and nzbprov == 'TPSE': tresults += myDB.select("SELECT * FROM rssdb WHERE Title like ? AND (Site='DEM' OR Site='WWT')", [tsearch]) logger.fdebug('seriesname_alt:' + str(seriesname_alt)) @@ -517,9 +517,9 @@ def torrentdbsearch(seriesname, issue, comicid=None, nzbprov=None): AS_Alternate += "%" AS_Alternate = '%' + AS_Alternate - if mylar.ENABLE_32P: + if mylar.ENABLE_32P and nzbprov == '32P': tresults += myDB.select("SELECT * FROM rssdb WHERE Title like ? AND Site='32P'", [AS_Alternate]) - if mylar.ENABLE_TPSE: + if mylar.ENABLE_TPSE and nzbprov == 'TPSE': tresults += myDB.select("SELECT * FROM rssdb WHERE Title like ? AND (Site='DEM' OR Site='WWT')", [AS_Alternate]) if tresults is None: