From 3ffbe171e50bcf850664eaf8adb6ace3df8a748b Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Sat, 10 Mar 2012 12:40:19 +0000 Subject: [PATCH] lyrics: detect missing lyrics in lyrics.com result --- beetsplug/lyrics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beetsplug/lyrics.py b/beetsplug/lyrics.py index 2ea364649..f23f41f11 100644 --- a/beetsplug/lyrics.py +++ b/beetsplug/lyrics.py @@ -115,7 +115,7 @@ def fetch_lyricscom(artist, title): html = urllib.urlopen(url).read() lyrics = extract_text(html, '
') - 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]