ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
132.61k stars 10.05k forks source link

Spotify video episode returns Error 410 Gone #29200

Open elf-bot opened 3 years ago

elf-bot commented 3 years ago

Checklist

Verbose log

$ youtube-dl --verbose https://open.spotify.com/episode/0SDj3JUVnPsUtZDAv3A7w6\?si\=mnHBUYuSQoS3eLhO3hl1Mg
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', 'https://open.spotify.com/episode/0SDj3JUVnPsUtZDAv3A7w6?si=mnHBUYuSQoS3eLhO3hl1Mg']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.05.16
[debug] Python version 3.8.5 (CPython) - Linux-5.4.0-73-generic-x86_64-with-glibc2.29
[debug] exe versions: ffmpeg 4.2.4, ffprobe 4.2.4, phantomjs 2.1.1, rtmpdump 2.4
[debug] Proxy map: {}
[spotify] Downloading JSON metadata
[spotify] 0SDj3JUVnPsUtZDAv3A7w6: Downloading JSON metadata
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'https://anon-podcast.scdn.co/a0b526495b54494643f4b0447349f2e964500131'
ERROR: unable to download video data: HTTP Error 410: Gone
Traceback (most recent call last):
  File "/home/user/.local/lib/python3.8/site-packages/youtube_dl/YoutubeDL.py", line 1976, in process_info
    success = dl(filename, info_dict)
  File "/home/user/.local/lib/python3.8/site-packages/youtube_dl/YoutubeDL.py", line 1915, in dl
    return fd.download(name, info)
  File "/home/user/.local/lib/python3.8/site-packages/youtube_dl/downloader/common.py", line 366, in download
    return self.real_download(filename, info_dict)
  File "/home/user/.local/lib/python3.8/site-packages/youtube_dl/downloader/http.py", line 351, in real_download
    establish_connection()
  File "/home/user/.local/lib/python3.8/site-packages/youtube_dl/downloader/http.py", line 116, in establish_connection
    raise err
  File "/home/user/.local/lib/python3.8/site-packages/youtube_dl/downloader/http.py", line 110, in establish_connection
    ctx.data = self.ydl.urlopen(request)
  File "/home/user/.local/lib/python3.8/site-packages/youtube_dl/YoutubeDL.py", line 2288, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python3.8/urllib/request.py", line 531, in open
    response = meth(req, response)
  File "/usr/lib/python3.8/urllib/request.py", line 640, in http_response
    response = self.parent.error(
  File "/usr/lib/python3.8/urllib/request.py", line 569, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.8/urllib/request.py", line 502, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.8/urllib/request.py", line 649, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 410: Gone

Description

youtube-dl https://open.spotify.com/episode/0SDj3JUVnPsUtZDAv3A7w6?si=mnHBUYuSQoS3eLhO3hl1Mg Trying to download a JRE video episode, but I get a 410: Gone error. Tried with multiple episodes and one that was reference as working back on Feb 12th https://github.com/ytdl-org/youtube-dl/issues/28143#issuecomment-778063421.
Also doing youtube-dl -F on the episodes returns only audio.

[spotify] Downloading JSON metadata
[spotify] 0SDj3JUVnPsUtZDAv3A7w6: Downloading JSON metadata
[info] Available formats for 0SDj3JUVnPsUtZDAv3A7w6:
format code  extension  resolution note
MP3_96       mp3        audio only audio@ 96k
yoshimo commented 3 years ago

Only some of them , based on the megaphone infrastructure are being served without encryption now. Some more details about it can be found in librespot and timdorr/spotifeed#30

daravi commented 3 years ago

Their Mac app is buggy (it stops playing video when you download), so I tried youtube-dl, but am similarly getting this error:

youtube-dl "https://open.spotify.com/episode/4ZGQK4cNq14d9AEp1Ux4Ns" --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://open.spotify.com/episode/4ZGQK4cNq14d9AEp1Ux4Ns', '--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.06.06
[debug] Python version 3.9.5 (CPython) - macOS-10.14.6-x86_64-i386-64bit
[debug] exe versions: ffmpeg 4.4, ffprobe 4.4, rtmpdump 2.4
[debug] Proxy map: {}
[spotify] Downloading JSON metadata
[spotify] 4ZGQK4cNq14d9AEp1Ux4Ns: Downloading JSON metadata
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'https://anon-podcast.scdn.co/17f15e7c19a6f6b605c04acca7132bd12c7d47c1'
ERROR: unable to download video data: <urlopen error [Errno 8] nodename nor servname provided, or not known>
...

Latest Spotify and youtube-dl versions (both installed via brew).