spotDL / spotify-downloader

Download your Spotify playlists and songs along with album art and metadata (from YouTube if a match is found).
https://spotdl.readthedocs.io/en/latest/
MIT License
17.14k stars 1.57k forks source link

This happened when trying to download a song #2084

Closed CJLoophole closed 2 months ago

CJLoophole commented 5 months ago

System OS

Windows

Python Version

3.7 (CPython)

Install Source

GitHub

Install version / commit hash

v4.2.2

Expected Behavior vs Actual Behavior

I was expecting it to work fine with no errors, but instead this happened: image

Steps to reproduce - Ensure to include actual links!

  1. Open spotdl-4.2.2-win32.exe
  2. Search for any song
  3. Returned the error above

Traceback

Updating web app

Files are stored in temporary directory and will be deleted after the program exits to save them to current directory
permanently enable the `web_use_output_dir` option
Starting web server

INFO:     Started server process [12520]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://localhost:8800 (Press CTRL+C to quit)
INFO:     ::1:50469 - "GET / HTTP/1.1" 200 OK
INFO:     ::1:50469 - "GET /assets/index-BDDgGyM9.css HTTP/1.1" 200 OK
INFO:     ::1:50497 - "GET /assets/index-CGxZV3ZT.js HTTP/1.1" 200 OK
ERROR:    Client a2c42e80-40df-443a-8a38-639f4ed17c4b not found
INFO:     ('::1', 50513) - "WebSocket /api/ws?client_id=a2c42e80-40df-443a-8a38-639f4ed17c4b" [accepted]
INFO:     Client a2c42e80-40df-443a-8a38-639f4ed17c4b connected
INFO:     connection open
INFO:     ::1:50497 - "GET /api/settings?client_id=a2c42e80-40df-443a-8a38-639f4ed17c4b HTTP/1.1" 404 Not Found
INFO:     ::1:50469 - "GET /api/version HTTP/1.1" 200 OK
INFO:     ::1:50522 - "GET /favicon.ico HTTP/1.1" 200 OK
INFO:     Applying settings: {'audio_providers': ['youtube'], 'lyrics_providers': ['genius'], 'playlist_numbering': False, 'scan_for_songs': False, 'm3u': None, 'output': '', 'overwrite': 'skip', 'search_query': None, 'ffmpeg': 'ffmpeg', 'bitrate': None, 'ffmpeg_args': None, 'format': 'mp3', 'save_file': None, 'filter_results': True, 'threads': 4, 'cookie_file': None, 'restrict': None, 'print_errors': False, 'sponsor_block': False, 'preload': False, 'archive': None, 'load_config': True, 'log_level': 'INFO', 'simple_tui': True, 'fetch_albums': False, 'id3_separator': '/', 'ytm_data': False, 'add_unavailable': False, 'generate_lrc': False, 'force_update_metadata': False, 'only_verified_results': False, 'sync_without_deleting': False, 'max_filename_length': None, 'yt_dlp_args': None, 'detect_formats': None, 'save_errors': None, 'ignore_albums': None, 'proxy': None, 'skip_explicit': False, 'log_format': None, 'redownload': False}
INFO:     ::1:50652 - "POST /api/settings/update?client_id=a2c42e80-40df-443a-8a38-639f4ed17c4b HTTP/1.1" 200 OK
INFO:     Applying settings: {'audio_providers': ['youtube'], 'lyrics_providers': ['genius'], 'playlist_numbering': False, 'scan_for_songs': False, 'm3u': None, 'output': '', 'overwrite': 'skip', 'search_query': None, 'ffmpeg': 'ffmpeg', 'bitrate': None, 'ffmpeg_args': None, 'format': 'mp3', 'save_file': None, 'filter_results': True, 'threads': 4, 'cookie_file': None, 'restrict': None, 'print_errors': False, 'sponsor_block': False, 'preload': False, 'archive': None, 'load_config': True, 'log_level': 'INFO', 'simple_tui': True, 'fetch_albums': False, 'id3_separator': '/', 'ytm_data': False, 'add_unavailable': False, 'generate_lrc': False, 'force_update_metadata': False, 'only_verified_results': False, 'sync_without_deleting': False, 'max_filename_length': None, 'yt_dlp_args': None, 'detect_formats': None, 'save_errors': None, 'ignore_albums': None, 'proxy': None, 'skip_explicit': False, 'log_format': None, 'redownload': False}
INFO:     ::1:50696 - "POST /api/settings/update?client_id=a2c42e80-40df-443a-8a38-639f4ed17c4b HTTP/1.1" 200 OK
INFO:     ::1:50715 - "GET /api/songs/search?query=you%27re+too+slow+-+odetari HTTP/1.1" 200 OK
Unexpected renderer encountered.
Renderer name: dict_keys(['reelShelfRenderer'])
Search term: odetari - you're too slow (bonus)
Please open an issue at https://github.com/pytube/pytube/issues and provide this log output.
Unexpected renderer encountered.
Renderer name: dict_keys(['reelShelfRenderer'])
Search term: odetari - you're too slow (bonus)
Please open an issue at https://github.com/pytube/pytube/issues and provide this log output.
Unexpected renderer encountered.
Renderer name: dict_keys(['reelShelfRenderer'])
Search term: odetari - you're too slow (bonus)
Please open an issue at https://github.com/pytube/pytube/issues and provide this log output.
Odetari - YOU'RE TOO SLOW (Bonus): Downloading
Odetari - YOU'RE TOO SLOW (Bonus): Embedding metadata
Odetari - YOU'RE TOO SLOW (Bonus): Done
1/0 complete
Downloaded "Odetari - YOU'RE TOO SLOW (Bonus)": https://youtube.com/watch?v=1Tfr1X9G0Kg
INFO:     ::1:50729 - "POST /api/download/url?url=https:%2F%2Fopen.spotify.com%2Ftrack%2F3QV4m1LpUixah1Ab2woVxl&client_id=a2c42e80-40df-443a-8a38-639f4ed17c4b HTTP/1.1" 200 OK
INFO:     ::1:50729 - "GET /api/songs/search?query=you%27re+too+slow+-+odetari HTTP/1.1" 200 OK
Unexpected renderer encountered.
Renderer name: dict_keys(['reelShelfRenderer'])
Search term: odetari - you're too slow
Please open an issue at https://github.com/pytube/pytube/issues and provide this log output.
Unexpected renderer encountered.
Renderer name: dict_keys(['reelShelfRenderer'])
Search term: odetari - you're too slow
Please open an issue at https://github.com/pytube/pytube/issues and provide this log output.
Unexpected renderer encountered.
Renderer name: dict_keys(['reelShelfRenderer'])
Search term: odetari - you're too slow
Please open an issue at https://github.com/pytube/pytube/issues and provide this log output.
Odetari - YOU'RE TOO SLOW: Downloading
Odetari - YOU'RE TOO SLOW: Embedding metadata
Odetari - YOU'RE TOO SLOW: Done
1/0 complete
Downloaded "Odetari - YOU'RE TOO SLOW": https://youtube.com/watch?v=1Tfr1X9G0Kg
INFO:     ::1:50729 - "POST /api/download/url?url=https:%2F%2Fopen.spotify.com%2Ftrack%2F5EloqweGioDEbqiGXTYWgE&client_id=a2c42e80-40df-443a-8a38-639f4ed17c4b HTTP/1.1" 200 OK
INFO:     ::1:50794 - "GET /api/download/file?file=C%3A%5CUsers%5Ccjsco%5C.spotdl%5Cweb%5Csessions%5Ca2c42e80-40df-443a-8a38-639f4ed17c4b%5COdetari%20-%20YOU%27RE%20TOO%20SLOW.mp3&client_id=a2c42e80-40df-443a-8a38-639f4ed17c4b HTTP/1.1" 200 OK

Other details

Just ignore the Python version, I'm not using Python; I just downloaded it from GitHub (by itself, without Python). (Also, don't comment on my music choice; I like it, but it doesn't mean you have to.)

ibenstokes9 commented 5 months ago

I'm also facing the same problem while using it for my spotigeek blog.

Silverarmor commented 4 months ago

Cannot repro. Specific song links please? Appears like a pytube issue possibly

xnetcat commented 2 months ago

Pytube is not getting any new updates anymore, try using other audio provider