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

Getting error when attempting to download music #978

Closed
inksterize opened this issue Nov 11, 2020 · 10 comments
Closed

Getting error when attempting to download music #978

inksterize opened this issue Nov 11, 2020 · 10 comments
Labels
Bug Unexpected problem or unintended behavior that needs to be fixed

Comments

@inksterize
Copy link

Hey, I was using spotDL V1 a while back, and I hadn't used it at all for a few months. I tried downloading a song and it said there was no result for the YouTube query searched for. Obviously that means the version I was using is no longer supported, so I updated to V3.0, via pip uninstall spotdl , then, when that was uninstalled, I proceeded to pip install spotdl . Using the new format to download music, I attempted to download a single song, "Legends Never Die - League of Legends". But every time I hit enter, it says fetching song, then this: File "/home/batman/miniconda3/bin/spotdl", line 8, in <module> sys.exit(console_entry_point()) File "/home/batman/miniconda3/lib/python3.7/site-packages/spotdl/__main__.py", line 100, in console_entry_point downloader.download_single_song(song) File "/home/batman/miniconda3/lib/python3.7/site-packages/spotdl/download/downloader.py", line 274, in download_single_song download_song(songObj, self.displayManager, self.downloadTracker) File "/home/batman/miniconda3/lib/python3.7/site-packages/spotdl/download/downloader.py", line 104, in download_song on_progress_callback = displayManager.pytube_progress_hook File "/home/batman/.local/lib/python3.7/site-packages/pytube/__main__.py", line 91, in __init__ self.prefetch() File "/home/batman/.local/lib/python3.7/site-packages/pytube/__main__.py", line 183, in prefetch self.js_url = extract.js_url(self.watch_html) File "/home/batman/.local/lib/python3.7/site-packages/pytube/extract.py", line 143, in js_url base_js = get_ytplayer_config(html)["assets"]["js"] KeyError: 'assets' Any ideas?

@issue-label-bot issue-label-bot bot added the Bug Unexpected problem or unintended behavior that needs to be fixed label Nov 11, 2020
@issue-label-bot
Copy link

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

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

@ghost
Copy link

ghost commented Nov 11, 2020

@inksterize
Copy link
Author

Well thanks, but I don't want the song, I need a fix.

@phcreery
Copy link
Contributor

Are you using the latest version?

Please look at other issues before submitting a new one. There are plenty of other KeyError issues reported (#930 #942 #928 #921 #918 #925 .... many more). If you have a similar issue, please comment on those so they get more attention and they might be able to help you solve your problem.

@phcreery
Copy link
Contributor

also, regarding the feedback you left for the issue-label-bot .... is this not considered a bug??

@isaamos
Copy link

isaamos commented Nov 12, 2020

well worked for me too, hope you get your fix

@bytedream
Copy link

I get similar errors when I try to download some songs without sudo / admin rights. When I run it with admin permissions everything is fine. Have you already tried to run it with admin rights?

@inksterize
Copy link
Author

inksterize commented Nov 23, 2020 via email

@bytedream
Copy link

Just type sudo before the command🤷‍♂️

@Silverarmor
Copy link
Member

Duplicate of #987, badly formatted issue. Closing

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

5 participants