mirror of
https://github.com/beetbox/beets.git
synced 2025-12-28 11:32:30 +01:00
lyrics: detect missing lyrics in lyrics.com result
This commit is contained in:
parent
c65b237b99
commit
3ffbe171e5
1 changed files with 1 additions and 1 deletions
|
|
@ -115,7 +115,7 @@ def fetch_lyricscom(artist, title):
|
|||
html = urllib.urlopen(url).read()
|
||||
|
||||
lyrics = extract_text(html, '<div id="lyric_space">')
|
||||
if lyrics:
|
||||
if lyrics and 'Sorry, we do not have the lyric' not in lyrics:
|
||||
parts = lyrics.split('\n---\nLyrics powered by', 1)
|
||||
if parts:
|
||||
return parts[0]
|
||||
|
|
|
|||
Loading…
Reference in a new issue