yt-dlp: [Broken] Arte.tv

Checklist

  • I’m reporting a broken site support
  • I’ve verified that I’m running yt-dlp version 2021.09.02
  • I’ve checked that all provided URLs are alive and playable in a browser
  • I’ve checked that all URLs and arguments with special characters are properly quoted or escaped
  • I’ve searched the bugtracker for similar issues including closed ones

Verbose log

[debug] Command-line config: ['-v', 'https://www.arte.tv/fr/videos/086095-001-K/par-dela-les-alpes/']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] yt-dlp version 2021.09.02 
[debug] Python version 3.8.10 (CPython 64bit) - Linux-5.4.0-84-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] Optional libraries: keyring, mutagen, pycryptodome, sqlite, websockets
[debug] Proxy map: {}
[debug] [generic] Extracting URL: https://www.arte.tv/fr/videos/086095-001-K/par-dela-les-alpes/
[generic] par-dela-les-alpes: Requesting header
WARNING: [generic] Falling back on generic information extractor.
[generic] par-dela-les-alpes: Downloading webpage
[generic] par-dela-les-alpes: Extracting information
ERROR: [generic] Unsupported URL: https://www.arte.tv/fr/videos/086095-001-K/par-dela-les-alpes/
Traceback (most recent call last):
  File "/home/rtega/.local/lib/python3.8/site-packages/yt_dlp/extractor/common.py", line 584, in extract
    ie_result = self._real_extract(url)
  File "/home/rtega/.local/lib/python3.8/site-packages/yt_dlp/extractor/generic.py", line 3713, in _real_extract
    raise UnsupportedError(url)
yt_dlp.utils.UnsupportedError: Unsupported URL: https://www.arte.tv/fr/videos/086095-001-K/par-dela-les-alpes/
Traceback (most recent call last):
  File "/home/rtega/.local/lib/python3.8/site-packages/yt_dlp/extractor/common.py", line 584, in extract
    ie_result = self._real_extract(url)
  File "/home/rtega/.local/lib/python3.8/site-packages/yt_dlp/extractor/generic.py", line 3713, in _real_extract
    raise UnsupportedError(url)
yt_dlp.utils.UnsupportedError: Unsupported URL: https://www.arte.tv/fr/videos/086095-001-K/par-dela-les-alpes/

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/rtega/.local/lib/python3.8/site-packages/yt_dlp/YoutubeDL.py", line 1214, in wrapper
    return func(self, *args, **kwargs)
  File "/home/rtega/.local/lib/python3.8/site-packages/yt_dlp/YoutubeDL.py", line 1239, in __extract_info
    ie_result = ie.extract(url)
  File "/home/rtega/.local/lib/python3.8/site-packages/yt_dlp/extractor/common.py", line 600, in extract
    raise ExtractorError(
yt_dlp.utils.ExtractorError: [generic] Unsupported URL: https://www.arte.tv/fr/videos/086095-001-K/par-dela-les-alpes/

zsh: exit 1     yt-dlp -v 'https://www.arte.tv/fr/videos/086095-001-K/par-dela-les-alpes/'

Description

Arte seems to use a new API for certain videos. For example the URL provided in the log does not download. More detailed info towards a solution might be found here: https://github.com/ytdl-org/youtube-dl/issues/29870

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 26 (9 by maintainers)

Most upvoted comments

$ yt-dlp -vv 'https://www.arte.tv/de/videos/RC-024878/samuel/'
[debug] Command-line config: ['-vv', 'https://www.arte.tv/de/videos/RC-024878/samuel/']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2024.08.06 from yt-dlp/yt-dlp [4d9231208] (debian*)
[debug] Python 3.12.6 (CPython x86_64 64bit) - Linux-6.3.0-1-amd64-x86_64-with-glibc2.40 (OpenSSL 3.3.2 3 Sep 2024, glibc 2.40)
[debug] exe versions: ffmpeg 7.0.2-3 (setts), ffprobe 7.0.2-3
[debug] Optional libraries: Cryptodome-3.20.0, brotli-1.1.0, certifi-2024.08.30, mutagen-1.46.0, pyxattr-0.8.1, requests-2.32.3, sqlite3-3.46.0, urllib3-2.0.7, websockets-10.4
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests
[debug] Loaded 1830 extractors
[ArteTVPlaylist] Extracting URL: https://www.arte.tv/de/videos/RC-024878/samuel/
[ArteTVPlaylist] RC-024878: Downloading JSON metadata
[download] Downloading playlist: Samuel
[ArteTVPlaylist] Playlist Samuel: Downloading 0 items
[download] Finished downloading playlist: Samuel

Well, it tells me the playlist is empty when there’s actually videos in it. As @ocococococ pointed out, adding 1 to the playlist ID does the trick and the playlist downloads:

mw@flare ~/samuel $ yt-dlp -vv 'https://www.arte.tv/de/videos/RC-024879/samuel/'
[debug] Command-line config: ['-vv', 'https://www.arte.tv/de/videos/RC-024879/samuel/']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2024.08.06 from yt-dlp/yt-dlp [4d9231208] (debian*)
[debug] Python 3.12.6 (CPython x86_64 64bit) - Linux-6.3.0-1-amd64-x86_64-with-glibc2.40 (OpenSSL 3.3.2 3 Sep 2024, glibc 2.40)
[debug] exe versions: ffmpeg 7.0.2-3 (setts), ffprobe 7.0.2-3
[debug] Optional libraries: Cryptodome-3.20.0, brotli-1.1.0, certifi-2024.08.30, mutagen-1.46.0, pyxattr-0.8.1, requests-2.32.3, sqlite3-3.46.0, urllib3-2.0.7, websockets-10.4
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests
[debug] Loaded 1830 extractors
[ArteTVPlaylist] Extracting URL: https://www.arte.tv/de/videos/RC-024879/samuel/
[ArteTVPlaylist] RC-024879: Downloading JSON metadata
[download] Downloading playlist: Samuel
[ArteTVPlaylist] Playlist Samuel: Downloading 21 items of 21
[download] Downloading item 1 of 21
...

If you click on the URL for one of the episodes, e.g. https://www.arte.tv/de/videos/104911-001-A/polar-park-eiskalte-morde-1-6/, you can see under the video window on the right side the button “Mehr” (eng. “more”). There the URL for the list of episodes differs a bit: https://www.arte.tv/de/videos/RC-024250/polar-park-eiskalte-morde/RC-024251/polar-park-eiskalte-morde/. If there are more seasons, the ID would shift +1 further.