mirror of
https://github.com/beetbox/beets.git
synced 2026-02-21 23:03:26 +01:00
parent
3338ef2ff2
commit
0824ccb85f
1 changed files with 3 additions and 0 deletions
|
|
@ -296,6 +296,9 @@ def scrape_lyrics_from_url(url):
|
|||
"""
|
||||
from bs4 import BeautifulSoup, Tag, Comment
|
||||
html = fetch_url(url)
|
||||
if not html:
|
||||
return None
|
||||
|
||||
soup = BeautifulSoup(html)
|
||||
|
||||
for tag in soup.findAll('br'):
|
||||
|
|
|
|||
Loading…
Reference in a new issue