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.8k stars 1.62k forks source link

HTTPError: HTTP Error 404: Not Found #1316

Closed KaratekHD closed 3 years ago

KaratekHD commented 3 years ago

Environment


Expected Behaviour

It downloads the song

Actual Behaviour

It prints the error below.

Steps to Reproduce

  1. Run spotdl https://open.spotify.com/track/6fpF84jpZ14IDEHt6PBUJy
  2. Error occurs

Traceback

Error: HTTP Error 404: Not Found        While Error : Chrissie Hynde - Don't Fall Apart on Me Tonight
 Traceback (most recent call last):
  File "/home/jens/.local/lib/python3.9/site-packages/spotdl/download/downloader.py", line 190, in download_song
    youtubeHandler.streams.filter(only_audio=True)
  File "/home/jens/.local/lib/python3.9/site-packages/pytube/__main__.py", line 310, in streams
    return StreamQuery(self.fmt_streams)
  File "/home/jens/.local/lib/python3.9/site-packages/pytube/__main__.py", line 213, in fmt_streams
    if "adaptive_fmts" in self.player_config_args:
  File "/home/jens/.local/lib/python3.9/site-packages/pytube/__main__.py", line 187, in player_config_args
    self._player_config_args = self.vid_info
  File "/home/jens/.local/lib/python3.9/site-packages/pytube/__main__.py", line 280, in vid_info
    return dict(parse_qsl(self.vid_info_raw))
  File "/home/jens/.local/lib/python3.9/site-packages/pytube/__main__.py", line 108, in vid_info_raw
    self._vid_info_raw = request.get(self.vid_info_url)
  File "/home/jens/.local/lib/python3.9/site-packages/pytube/request.py", line 52, in get
    response = _execute_request(url, headers=extra_headers, timeout=timeout)
  File "/home/jens/.local/lib/python3.9/site-packages/pytube/request.py", line 36, in _execute_request
    return urlopen(request, timeout=timeout)  # nosec
  File "/usr/lib64/python3.9/urllib/request.py", line 214, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib64/python3.9/urllib/request.py", line 523, in open
    response = meth(req, response)
  File "/usr/lib64/python3.9/urllib/request.py", line 632, in http_response
    response = self.parent.error(
  File "/usr/lib64/python3.9/urllib/request.py", line 561, in error
    return self._call_chain(*args)
  File "/usr/lib64/python3.9/urllib/request.py", line 494, in _call_chain
    result = func(*args)
  File "/usr/lib64/python3.9/urllib/request.py", line 641, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found
xnetcat commented 3 years ago

duplicate: https://github.com/spotDL/spotify-downloader/issues/1308