Cannot download any songs or playlists. No idea whats wrong, tried uninstalling and reinstalling spotdl and python. FFmpeg is installed
C:\Users\kspis>spotdl https://open.spotify.com/track/08mG3Y1vljYA6bvDt4Wqkj?si=SxezdxmlTx-CaVoucHmrUA
Fetching Song...
0%| |ETA: ?, ~min/songTraceback (most recent call last):
File "C:\Users\kspis\AppData\Local\Programs\Python\Python38-32\Scripts\spotdl-script.py", line 11, in <module>
load_entry_point('spotdl==3.2.0rc0', 'console_scripts', 'spotdl')()
File "c:\users\kspis\appdata\local\programs\python\python38-32\lib\site-packages\spotdl\__main__.py", line 84, in console_entry_point
downloader.download_single_song(song)
File "c:\users\kspis\appdata\local\programs\python\python38-32\lib\site-packages\spotdl\download\downloader.py", line 283, in download_single_song
download_song(songObj, self.displayManager, self.downloadTracker)
File "c:\users\kspis\appdata\local\programs\python\python38-32\lib\site-packages\spotdl\download\downloader.py", line 103, in download_song
youtubeHandler = YouTube(
File "c:\users\kspis\appdata\local\programs\python\python38-32\lib\site-packages\pytube\__main__.py", line 91, in __init__
self.prefetch()
File "c:\users\kspis\appdata\local\programs\python\python38-32\lib\site-packages\pytube\__main__.py", line 183, in prefetch
self.js_url = extract.js_url(self.watch_html)
File "c:\users\kspis\appdata\local\programs\python\python38-32\lib\site-packages\pytube\extract.py", line 143, in js_url
base_js = get_ytplayer_config(html)["assets"]["js"]
KeyError: 'assets'
0%| |ETA: ?, ~min/song
Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.77. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
Same problem for me :
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/bin/spotdl", line 11, in <module>
load_entry_point('spotdl==3.2.0rc0', 'console_scripts', 'spotdl')()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/spotdl/__main__.py", line 81, in console_entry_point
song = SongObj.from_url(request)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/spotdl/search/songObj.py", line 43, in from_url
rawTrackMeta = spotifyClient.track(spotifyURL)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/spotipy/client.py", line 331, in track
return self._get("tracks/" + trid)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/spotipy/client.py", line 284, in _get
return self._internal_call("GET", url, payload, kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/spotipy/client.py", line 220, in _internal_call
headers = self._auth_headers()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/spotipy/client.py", line 211, in _auth_headers
token = self.auth_manager.get_access_token(as_dict=False)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/spotipy/oauth2.py", line 175, in get_access_token
token_info = self._request_access_token()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/spotipy/oauth2.py", line 197, in _request_access_token
error_payload = response.json()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/requests/models.py", line 897, in json
return complexjson.loads(self.text, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/__init__.py", line 348, in loads
return _default_decoder.decode(s)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
That's a pytube error. Please update to v3.1.4
That's a pytube error. Please update to v3.1.4
Done.
Now I have this shorter error message:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/bin/spotdl", line 11, in <module>
load_entry_point('spotdl==3.2.0rc0', 'console_scripts', 'spotdl')()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/spotdl/__main__.py", line 84, in console_entry_point
downloader.download_single_song(song)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/spotdl/download/downloader.py", line 283, in download_single_song
download_song(songObj, self.displayManager, self.downloadTracker)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/spotdl/download/downloader.py", line 105, in download_song
on_progress_callback = displayManager.pytube_progress_hook
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pytube/__main__.py", line 103, in __init__
self.descramble()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/spotdl/patches/pyTube.py", line 149, in descramble
self.player_config_args = get_ytplayer_config(self.watch_html)["args"]
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/spotdl/patches/pyTube.py", line 241, in get_ytplayer_config
raise RegexMatchError(
NameError: name 'RegexMatchError' is not defined
EDIT : It worked after reinstalling spotdl.
That's a pytube error. Please update to v3.1.4
thank you, works now after updating.
@darkross67 check if youtube music is available in your country.
@darkross67 check if youtube music is available in your country.
Sorry I Edit my last post to say that after reinstalling Spotdl it worked !
Thank you ;)
Most helpful comment
Issue-Label Bot is automatically applying the label
bugto this issue, with a confidence of 0.77. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!Links: app homepage, dashboard and code for this bot.