mirror of
https://github.com/beetbox/beets.git
synced 2025-12-29 12:02:44 +01:00
Update lyrics.py
This commit is contained in:
parent
a64d277bae
commit
6c8f45c7f7
1 changed files with 2 additions and 3 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue