From 91a75a80125292b2be7bb1d2f1e64865e66a4e5b Mon Sep 17 00:00:00 2001 From: Remy Date: Sat, 6 Aug 2011 11:25:56 -0700 Subject: [PATCH] Typo in searcher --- headphones/searcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headphones/searcher.py b/headphones/searcher.py index aa890e9d..d7bdb4c5 100644 --- a/headphones/searcher.py +++ b/headphones/searcher.py @@ -471,7 +471,7 @@ def verifyresult(title, term): title = re.sub('[\.\-\/]', ' ', title) - if not re.search('^' + re.escape(term), re.subtitle, re.IGNORECASE): + if not re.search('^' + re.escape(term), title, re.IGNORECASE): logger.info("Removed from results: " + title + " (artist not at string start).") return False elif re.search(re.escape(term) + '\w', title, re.IGNORECASE | re.UNICODE):