mirror of
https://github.com/evilhero/mylar
synced 2024-12-25 09:11:46 +00:00
FIX:(#1481) Legacy search of 32p gives incorrect snatches when TPSE is enabled
This commit is contained in:
parent
e6a0f69767
commit
9c6bb12dd1
1 changed files with 4 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue