mirror of
https://github.com/beetbox/beets.git
synced 2025-12-30 12:32:33 +01:00
lyrics: Some comments and better naming
This commit is contained in:
parent
f684f29a25
commit
d1753b341e
1 changed files with 6 additions and 2 deletions
|
|
@ -331,8 +331,12 @@ class LyricsWiki(SymbolsReplaced):
|
|||
html = self.fetch_url(url)
|
||||
if not html:
|
||||
return
|
||||
lyrics = extract_text_in(unescape(html), u"<div class='lyricbox'>")
|
||||
lyrics = scrape_lyrics_from_html(lyrics)
|
||||
|
||||
# Get the HTML fragment inside the appropriate HTML element and then
|
||||
# extract the text from it.
|
||||
html_frag = extract_text_in(unescape(html), u"<div class='lyricbox'>")
|
||||
lyrics = scrape_lyrics_from_html(html_frag)
|
||||
|
||||
if lyrics and 'Unfortunately, we are not licensed' not in lyrics:
|
||||
return lyrics
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue