From 6c8f45c7f7db422d08871109fd44f52e5fc8d5d7 Mon Sep 17 00:00:00 2001 From: "Fabrice L." Date: Wed, 12 Jun 2013 01:20:08 +0300 Subject: [PATCH] Update lyrics.py --- beetsplug/lyrics.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/beetsplug/lyrics.py b/beetsplug/lyrics.py index 08dc52e10..707d84cf0 100644 --- a/beetsplug/lyrics.py +++ b/beetsplug/lyrics.py @@ -228,12 +228,11 @@ def is_page_candidate(urlLink, urlTitle, title, artist): songTitle = re.sub(u'(%s)' % u'|'.join(tokens) ,u'', urlTitle).strip('%20') if songTitle: - log.debug("Match ratio of '%s' with '%s': %s" % + log.debug("Match ratio of '%s' with title: %s" % (songTitle, - title, difflib.SequenceMatcher(None, songTitle, title).ratio())) - typoRatio = .75 + typoRatio = .8 return difflib.SequenceMatcher(None, songTitle, title).ratio() > typoRatio def insert_line_feeds(text):