mirror of
https://github.com/rembo10/headphones.git
synced 2026-03-21 12:19:27 +00: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':
|
||||
continue
|
||||
if not re.search('(?:\W|^)+' + token + '(?:\W|$)+', title, re.IGNORECASE | re.UNICODE):
|
||||
logger.info("Removed from results: " + title + " (missing token: " + token + ")")
|
||||
return False
|
||||
if not re.search('(?:\W|^)+' + token.replace("'","") + '(?:\W|$)+', title, re.IGNORECASE | re.UNICODE):
|
||||
logger.info("Removed from results: " + title + " (missing tokens: " + token + " and " + token.replace("'","") + ")")
|
||||
return False
|
||||
return True
|
||||
|
||||
def getresultNZB(result):
|
||||
|
||||
Reference in New Issue
Block a user