Spotify-downloader: Exception in thread Thread-1

Created on 28 Jul 2020  Â·  19Comments  Â·  Source: spotDL/spotify-downloader

What is the purpose of your issue?

  • [ ] Bug
  • [ ] Feature Request
  • [ ] Question
  • [x] Other

Description


an error is popping out while I'm trying to download a song
its also say "ValueError: too many values to unpack (expected 2)"

Log


log.txt

bug

Most helpful comment

Alright, thanks! I've released v2.2.2. Update your installation with:

$ pip3 install spotdl -U

and downloads should work now.

All 19 comments

same error happened to me today, latest package.
yesterday july 26th ran fine, july 27th error
"ValueError: too many values to unpack (expected 2)"

i got error too
"ValueError: too many values to unpack (expected 2)"

image

i got this message too

Screenshot from 2020-07-27 18-32-42
i got the same error

me too fuck, was working on project based on spotdl and now i hope it's just temporary error.

yea hope it gets solved in a day or two i too am working on a project based on this

got any fix for this error guys?

ã„´ nothing changed, still waiting

same here. I even tried the docker version and got the same error

fixed?

still got error

is this module a still being updated one so we can expect someone to get it solved?

nficano/pytube#701 fixes the error!

I just created #798 based on nficano/pytube#701. Could you guys confirm whether it fixes the issue for you? If so, I'll publish a new spotdl release with the fix.

nficano/pytube#701 fixes the error!

I just created #798 based on nficano/pytube#701. Could you guys confirm whether it fixes the issue for you? If so, I'll publish a new spotdl release with the fix.

It works fine! Tested on macOS 11 with Python 3.8.3

Alright, thanks! I've released v2.2.2. Update your installation with:

$ pip3 install spotdl -U

and downloads should work now.

Alright, thanks! I've released v2.2.2. Update your installation with:

$ pip3 install spotdl -U

and downloads should work now.

thanks man, god bless you

Not sure if this is exactly the same issue but some tracks are skipped with this error:

INFO: 4. Downloading "https://open.spotify.com/track/6oSmp7qnvAxUXeUKhl67a6" Exception in thread Thread-18: Traceback (most recent call last): File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/usr/local/lib/python3.8/site-packages/spotdl/util.py", line 37, in run self._return = self._target( File "/usr/local/lib/python3.8/site-packages/spotdl/command_line/core.py", line 349, in threaded_metadata metadata = search_metadata.on_youtube_and_spotify() File "/usr/local/lib/python3.8/site-packages/spotdl/metadata_search.py", line 159, in on_youtube_and_spotify metadata = caller(self.track) File "/usr/local/lib/python3.8/site-packages/spotdl/metadata_search.py", line 287, in _on_youtube_and_spotify_for_type_spotify youtube_metadata = self.providers["youtube"].from_url(youtube_video["url"]) File "/usr/local/lib/python3.8/site-packages/spotdl/metadata/providers/youtube.py", line 421, in from_url content = pytube.YouTube(url) File "/usr/local/lib/python3.8/site-packages/pytube/__main__.py", line 91, in __init__ self.prefetch() File "/usr/local/lib/python3.8/site-packages/pytube/__main__.py", line 183, in prefetch self.js_url = extract.js_url(self.watch_html) File "/usr/local/lib/python3.8/site-packages/pytube/extract.py", line 143, in js_url base_js = get_ytplayer_config(html)["assets"]["js"] File "/usr/local/lib/python3.8/site-packages/pytube/extract.py", line 200, in get_ytplayer_config return json.loads(yt_player_config) File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/json/__init__.py", line 357, in loads return _default_decoder.decode(s) File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Unterminated string starting at: line 1 column 1024 (char 1023)

On another track this error appears:

`INFO: 30. Downloading "https://open.spotify.com/track/1xznGGDReH1oQq0xzbwXa3"
Exception in thread Thread-207:
Traceback (most recent call last):
File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.8/site-packages/spotdl/util.py", line 37, in run
self._return = self._target(
File "/usr/local/lib/python3.8/site-packages/spotdl/command_line/core.py", line 349, in threaded_metadata
metadata = search_metadata.on_youtube_and_spotify()
File "/usr/local/lib/python3.8/site-packages/spotdl/metadata_search.py", line 159, in on_youtube_and_spotify
metadata = caller(self.track)
File "/usr/local/lib/python3.8/site-packages/spotdl/metadata_search.py", line 287, in _on_youtube_and_spotify_for_type_spotify
youtube_metadata = self.providers["youtube"].from_url(youtube_video["url"])
File "/usr/local/lib/python3.8/site-packages/spotdl/metadata/providers/youtube.py", line 421, in from_url
content = pytube.YouTube(url)
File "/usr/local/lib/python3.8/site-packages/pytube/__main__.py", line 91, in __init__
self.prefetch()
File "/usr/local/lib/python3.8/site-packages/pytube/__main__.py", line 183, in prefetch
self.js_url = extract.js_url(self.watch_html)
File "/usr/local/lib/python3.8/site-packages/pytube/extract.py", line 143, in js_url
base_js = get_ytplayer_config(html)["assets"]["js"]
File "/usr/local/lib/python3.8/site-packages/pytube/extract.py", line 200, in get_ytplayer_config
return json.loads(yt_player_config)
File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/json/__init__.py", line 357, in loads
return _default_decoder.decode(s)
File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Unterminated string starting at: line 1 column 71 (char 70)

INFO: 31. Downloading "https://open.spotify.com/track/2DkRjzvzTxzeijk0pjSNBD"
Exception in thread Thread-208:
Traceback (most recent call last):
File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.8/site-packages/spotdl/util.py", line 37, in run
self._return = self._target(
File "/usr/local/lib/python3.8/site-packages/spotdl/command_line/core.py", line 349, in threaded_metadata
metadata = search_metadata.on_youtube_and_spotify()
File "/usr/local/lib/python3.8/site-packages/spotdl/metadata_search.py", line 159, in on_youtube_and_spotify
metadata = caller(self.track)
File "/usr/local/lib/python3.8/site-packages/spotdl/metadata_search.py", line 287, in _on_youtube_and_spotify_for_type_spotify
youtube_metadata = self.providers["youtube"].from_url(youtube_video["url"])
File "/usr/local/lib/python3.8/site-packages/spotdl/metadata/providers/youtube.py", line 421, in from_url
content = pytube.YouTube(url)
File "/usr/local/lib/python3.8/site-packages/pytube/__main__.py", line 91, in __init__
self.prefetch()
File "/usr/local/lib/python3.8/site-packages/pytube/__main__.py", line 183, in prefetch
self.js_url = extract.js_url(self.watch_html)
File "/usr/local/lib/python3.8/site-packages/pytube/extract.py", line 143, in js_url
base_js = get_ytplayer_config(html)["assets"]["js"]
File "/usr/local/lib/python3.8/site-packages/pytube/extract.py", line 200, in get_ytplayer_config
return json.loads(yt_player_config)
File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/json/__init__.py", line 357, in loads
return _default_decoder.decode(s)
File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Unterminated string starting at: line 1 column 992 (char 991)`

Was this page helpful?
0 / 5 - 0 ratings

Related issues

marinabar picture marinabar  Â·  4Comments

jjboy91 picture jjboy91  Â·  5Comments

mvrck19 picture mvrck19  Â·  5Comments

iateadonut picture iateadonut  Â·  4Comments

Maxino22 picture Maxino22  Â·  4Comments