You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
beet lyrics was left running for a while, worked fine until it stopped at some unidentified song that triggered:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/bin/beet", line 8, in <module>
sys.exit(main())
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/beets/ui/__init__.py", line 1291, in main
_raw_main(args)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/beets/ui/__init__.py", line 1278, in _raw_main
subcommand.func(lib, suboptions, subargs)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/beetsplug/lyrics.py", line 792, in func
opts.force_refetch or self.config['force'],
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/beetsplug/lyrics.py", line 889, in fetch_item_lyrics
lyrics = [self.get_lyrics(artist, title) for title in titles]
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/beetsplug/lyrics.py", line 889, in <listcomp>
lyrics = [self.get_lyrics(artist, title) for title in titles]
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/beetsplug/lyrics.py", line 922, in get_lyrics
lyrics = backend.fetch(artist, title)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/beetsplug/lyrics.py", line 347, in fetch
self.fetch_url(hit["result"]["url"]))
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/beetsplug/lyrics.py", line 376, in _scrape_lyrics_from_html
html = BeautifulSoup(html, "html.parser")
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/bs4/__init__.py", line 310, in __init__
elif len(markup) <= 256 and (
TypeError: object of type 'NoneType' has no len()
No, this seems to be an actual bug, the fix from #480 apparently either got lost or didn't apply to all lyrics sources in the first place. I'll have a try at fixing this.
This probably didn't show up before because it only manifests when the lyrics provider's server is unreachable. If your connection is down entirely, that would show up much quicker.
Thanks a lot, hopefully you can get it. I could have posted the verbose log, but I'm going through my music year by year and the error shows up a solid hour into the process or so. Sometimes it doesn't show up at all.
Problem
beet lyrics
was left running for a while, worked fine until it stopped at some unidentified song that triggered:Setup
Relevant issue: #479
The text was updated successfully, but these errors were encountered: