ERROR:spotdl.command_line.core:351:
YouTube returned no videos for the search query "Alan Walker - The Spectre lyrics".
Hi, I try to download a song, but it give an error.What's wrong with this, please?
Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.79. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
Same issue
Another error:
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/spotdl/metadata/providers/youtube.py", line 421, in from_url
content = pytube.YouTube(url)
File "/usr/local/lib/python3.6/site-packages/pytube/__main__.py", line 91, in __init__
self.prefetch()
File "/usr/local/lib/python3.6/site-packages/pytube/__main__.py", line 183, in prefetch
self.js_url = extract.js_url(self.watch_html)
File "/usr/local/lib/python3.6/site-packages/pytube/extract.py", line 143, in js_url
base_js = get_ytplayer_config(html)["assets"]["js"]
KeyError: 'assets'
Error in 3.1.0
Traceback (most recent call last):
File "/usr/local/bin/spotdl", line 11, in
load_entry_point('spotdl==3.1.0', 'console_scripts', 'spotdl')()
File "/usr/local/lib/python3.6/site-packages/spotdl/__main__.py", line 100, in console_entry_point
downloader.download_single_song(song)
File "/usr/local/lib/python3.6/site-packages/spotdl/download/downloader.py", line 274, in download_single_song
download_song(songObj, self.displayManager, self.downloadTracker)
File "/usr/local/lib/python3.6/site-packages/spotdl/download/downloader.py", line 104, in download_song
on_progress_callback = displayManager.pytube_progress_hook
File "/usr/local/lib/python3.6/site-packages/pytube/__main__.py", line 91, in __init__
self.prefetch()
File "/usr/local/lib/python3.6/site-packages/pytube/__main__.py", line 183, in prefetch
self.js_url = extract.js_url(self.watch_html)
File "/usr/local/lib/python3.6/site-packages/pytube/extract.py", line 143, in js_url
base_js = get_ytplayer_config(html)["assets"]["js"]
KeyError: 'assets'
Having the same issue. v2 is broken and so is v3 now
As to the 'assets' error. ITs a pytube3 problem and there really isn't a fix from our side. Please see this. It would also help fi you searched existing issues before opening new ones.
ERROR:spotdl.command_line.core:351:
YouTube returned no videos for the search query "Alan Walker - The Spectre lyrics".Hi, I try to download a song, but it give an error.What's wrong with this, please?
I'm assuming that your using v3. v3 passes the search query to spotify and not youtube. Spotify can't/won't match 'lyrics' and hence returns no results. Try running spotdl "Alan Walker Spectre" instead
UPDATE
I checked, your using v2. We aren't fixing v2. v3 has problems due to a new pytube update. It'll take a week to fix. See #930
Most helpful comment
Error in 3.1.0
Traceback (most recent call last):
File "/usr/local/bin/spotdl", line 11, in
load_entry_point('spotdl==3.1.0', 'console_scripts', 'spotdl')()
File "/usr/local/lib/python3.6/site-packages/spotdl/__main__.py", line 100, in console_entry_point
downloader.download_single_song(song)
File "/usr/local/lib/python3.6/site-packages/spotdl/download/downloader.py", line 274, in download_single_song
download_song(songObj, self.displayManager, self.downloadTracker)
File "/usr/local/lib/python3.6/site-packages/spotdl/download/downloader.py", line 104, in download_song
on_progress_callback = displayManager.pytube_progress_hook
File "/usr/local/lib/python3.6/site-packages/pytube/__main__.py", line 91, in __init__
self.prefetch()
File "/usr/local/lib/python3.6/site-packages/pytube/__main__.py", line 183, in prefetch
self.js_url = extract.js_url(self.watch_html)
File "/usr/local/lib/python3.6/site-packages/pytube/extract.py", line 143, in js_url
base_js = get_ytplayer_config(html)["assets"]["js"]
KeyError: 'assets'