Because I don't know how to merge mu branch with the main headphones one...

modified:   headphones/searcher.py
This commit is contained in:
Calimerorulez
2012-01-24 08:58:45 +01:00
parent 1a4cc39d19
commit 736bb67524

View File

@@ -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):