Spotify-downloader: V3 is not working (KeyError: 'assets')

Created on 2 Dec 2020  路  5Comments  路  Source: spotDL/spotify-downloader

Hey guys,
So Ive upgraded to the V3 but it's not working.
I don't understand python language so what am I doing wrong ?
`Fetching Playlist...
5%|鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枆 |ETA: 39:36, 0.68min/songmultiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/usr/local/Cellar/[email protected]/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/pool.py", line 125, in worker
result = (True, func(args, *kwds))
File "/usr/local/Cellar/[email protected]/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/pool.py", line 51, in starmapstar
return list(itertools.starmap(args[0], args[1]))
File "/usr/local/lib/python3.9/site-packages/spotdl/download/downloader.py", line 103, in download_song
youtubeHandler = YouTube(
File "/usr/local/lib/python3.9/site-packages/pytube/__main__.py", line 91, in __init__
self.prefetch()
File "/usr/local/lib/python3.9/site-packages/pytube/__main__.py", line 183, in prefetch
self.js_url = extract.js_url(self.watch_html)
File "/usr/local/lib/python3.9/site-packages/pytube/extract.py", line 143, in js_url
base_js = get_ytplayer_config(html)["assets"]["js"]
KeyError: 'assets'
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/local/bin/spotdl", line 8, in
sys.exit(console_entry_point())
File "/usr/local/lib/python3.9/site-packages/spotdl/__main__.py", line 104, in console_entry_point
downloader.download_multiple_songs(songObjList)
File "/usr/local/lib/python3.9/site-packages/spotdl/download/downloader.py", line 302, in download_multiple_songs
self.workerPool.starmap(
File "/usr/local/Cellar/[email protected]/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/pool.py", line 372, in starmap
return self._map_async(func, iterable, starmapstar, chunksize).get()
File "/usr/local/Cellar/[email protected]/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/pool.py", line 771, in get
raise self._value
KeyError: 'assets'`

Thanks

bug

All 5 comments

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.78. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

use version v3.1.0

Same issue
`Traceback (most recent call last):
File "/usr/local/Cellar/[email protected]/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/pool.py", line 125, in worker
result = (True, func(args, *kwds))
File "/usr/local/Cellar/[email protected]/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/pool.py", line 51, in starmapstar
return list(itertools.starmap(args[0], args[1]))
File "/usr/local/lib/python3.9/site-packages/spotdl/download/downloader.py", line 103, in download_song
youtubeHandler = YouTube(
File "/usr/local/lib/python3.9/site-packages/pytube/__main__.py", line 91, in __init__
self.prefetch()
File "/usr/local/lib/python3.9/site-packages/pytube/__main__.py", line 183, in prefetch
self.js_url = extract.js_url(self.watch_html)
File "/usr/local/lib/python3.9/site-packages/pytube/extract.py", line 143, in js_url
base_js = get_ytplayer_config(html)["assets"]["js"]
KeyError: 'assets'
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/local/bin/spotdl", line 8, in
sys.exit(console_entry_point())
File "/usr/local/lib/python3.9/site-packages/spotdl/__main__.py", line 104, in console_entry_point
downloader.download_multiple_songs(songObjList)
File "/usr/local/lib/python3.9/site-packages/spotdl/download/downloader.py", line 302, in download_multiple_songs
self.workerPool.starmap(
File "/usr/local/Cellar/[email protected]/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/pool.py", line 372, in starmap
return self._map_async(func, iterable, starmapstar, chunksize).get()
File "/usr/local/Cellar/[email protected]/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/pool.py", line 771, in get
raise self._value
KeyError: 'assets'
`

V3.1.0 had issues with pytube that were subsequently solved. In v3.1.4.

There have been issues in 3.1.4 that haven't been resolved yet but the 3.1.4 issues don't occur for everyone.

Dupliate of #987. Badly formatted issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

linusg picture linusg  路  6Comments

iateadonut picture iateadonut  路  4Comments

EnjenirVenca picture EnjenirVenca  路  5Comments

b-rad15 picture b-rad15  路  4Comments

EsmailELBoBDev2 picture EsmailELBoBDev2  路  5Comments