mirror of
https://github.com/rembo10/headphones.git
synced 2026-07-21 16:34:01 +01:00
Fix for issue 357/385: apostrophes in titles not matching uploads without apostrophes - now checks for tokens both ways
This commit is contained in:
@@ -478,8 +478,9 @@ def verifyresult(title, artistterm, term):
|
|||||||
if token == 'Various' or token == 'Artists' or token == 'VA':
|
if token == 'Various' or token == 'Artists' or token == 'VA':
|
||||||
continue
|
continue
|
||||||
if not re.search('(?:\W|^)+' + token + '(?:\W|$)+', title, re.IGNORECASE | re.UNICODE):
|
if not re.search('(?:\W|^)+' + token + '(?:\W|$)+', title, re.IGNORECASE | re.UNICODE):
|
||||||
logger.info("Removed from results: " + title + " (missing token: " + token + ")")
|
if not re.search('(?:\W|^)+' + token.replace("'","") + '(?:\W|$)+', title, re.IGNORECASE | re.UNICODE):
|
||||||
return False
|
logger.info("Removed from results: " + title + " (missing tokens: " + token + " and " + token.replace("'","") + ")")
|
||||||
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def getresultNZB(result):
|
def getresultNZB(result):
|
||||||
|
|||||||
Reference in New Issue
Block a user