Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YouTube returned no videos for the search query "Alan Walker - The Spectre lyrics". #932

Closed
TaoSun5 opened this issue Oct 27, 2020 · 7 comments
Labels
Bug Unexpected problem or unintended behavior that needs to be fixed

Comments

@TaoSun5
Copy link

TaoSun5 commented Oct 27, 2020

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 issue-label-bot bot added the Bug Unexpected problem or unintended behavior that needs to be fixed label Oct 27, 2020
@issue-label-bot
Copy link

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

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

@MasterFlomaster1
Copy link

Same issue

@TaoSun5
Copy link
Author

TaoSun5 commented Oct 28, 2020

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'

@TaoSun5
Copy link
Author

TaoSun5 commented Oct 28, 2020

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'

@4eks1s
Copy link

4eks1s commented Oct 28, 2020

Having the same issue. v2 is broken and so is v3 now

@ghost
Copy link

ghost commented Oct 28, 2020

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.

@ghost
Copy link

ghost commented Oct 28, 2020

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

@ghost ghost closed this as completed Oct 28, 2020
ghost pushed a commit that referenced this issue Oct 28, 2020
Author: @Mikhail-Zex 

* moreee final changes

* final final changes
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Unexpected problem or unintended behavior that needs to be fixed
Projects
None yet
Development

No branches or pull requests

3 participants