yt-dlp: [ArteTV] Unable to download JSON metadata - HTTP Error 404: Not Found
Checklist
- I’m reporting a broken site
- I’ve verified that I’m running yt-dlp version 2022.04.08 (update instructions) or later (specify commit)
- 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. DO NOT post duplicates
- I’ve read the guidelines for opening an issue
- I’ve read about sharing account credentials and I’m willing to share it if required
Region
Germany
Description
Command lines below should be self-explanatory.
By the way, many thanks for this really useful program and the effort you put in to it.
Verbose log
$ mpv https://www.arte.tv/de/videos/041596-000-A/das-leben-ist-seltsam/
[ytdl_hook] ERROR: [ArteTV] 041596-000-A: Unable to download JSON metadata: HTTP Error 404: Not Found (caused by <HTTPError 404: 'Not Found'>); please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U
[ytdl_hook] youtube-dl failed: unexpected error occurred
Failed to recognize file format.
$ yt-dlp -U
Latest version: 2022.04.08, Current version: 2022.04.08
yt-dlp is up to date (2022.04.08)
$ yt-dlp --ignore-config -F https://www.arte.tv/de/videos/041596-000-A/das-leben-ist-seltsam/
[ArteTV] 041596-000-A: Downloading JSON metadata
ERROR: [ArteTV] 041596-000-A: Unable to download JSON metadata: HTTP Error 404: Not Found (caused by <HTTPError 404: 'Not Found'>); please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U
$ yt-dlp --ignore-config -vU https://www.arte.tv/de/videos/041596-000-A/das-leben-ist-seltsam/
[debug] Command-line config: ['--ignore-config', '-vU', 'https://www.arte.tv/de/videos/041596-000-A/das-leben-ist-seltsam/']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, err utf-8, pref UTF-8
[debug] yt-dlp version 2022.04.08 [7884ade65]
[debug] Python version 3.10.4 (CPython 64bit) - Linux-5.17.5-arch1-1-x86_64-with-glibc2.35
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] exe versions: ffmpeg 5.0 (setts), ffprobe 5.0, rtmpdump 2.4
[debug] Optional libraries: certifi, Cryptodome, mutagen, sqlite, websockets
[debug] Proxy map: {}
Latest version: 2022.04.08, Current version: 2022.04.08
yt-dlp is up to date (2022.04.08)
[debug] [ArteTV] Extracting URL: https://www.arte.tv/de/videos/041596-000-A/das-leben-ist-seltsam/
[ArteTV] 041596-000-A: Downloading JSON metadata
ERROR: [ArteTV] 041596-000-A: Unable to download JSON metadata: HTTP Error 404: Not Found (caused by <HTTPError 404: 'Not Found'>); please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U
File "/usr/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 641, in extract
ie_result = self._real_extract(url)
File "/usr/lib/python3.10/site-packages/yt_dlp/extractor/arte.py", line 57, in _real_extract
info = self._download_json(
File "/usr/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 1029, in _download_json
res = self._download_json_handle(
File "/usr/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 1008, in _download_json_handle
res = self._download_webpage_handle(
File "/usr/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 800, in _download_webpage_handle
urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=query, expected_status=expected_status)
File "/usr/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 785, in _request_webpage
raise ExtractorError(errmsg, cause=err)
File "/usr/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 767, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/usr/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 3601, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/lib/python3.10/urllib/request.py", line 525, in open
response = meth(req, response)
File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response
response = self.parent.error(
File "/usr/lib/python3.10/urllib/request.py", line 563, in error
return self._call_chain(*args)
File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
result = func(*args)
File "/usr/lib/python3.10/urllib/request.py", line 643, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 11
- Comments: 39 (7 by maintainers)
Yes indeed, that’s sad. Can someone please put the fix to the next version?
Either of these versions of arte.py fixes the current issue for me. I’m in Germany. Please merge and release!
This version of the extractor fixes the problem for me too.
Just clone the repo, replace the file
yt_dlp/extractor/arte.py
with the fixed one, go back to the root of the repo and do amake
. You’ll have a new executable fileyt-dlp
that you can use normally.Working for me too. Will this soon be merged in master?
@rtega If you are on Linux, replace the
arte.py
file by this one or that more recent one. Both work (if you are in France, at least).While the exact errors are different, I’m closing this as duplicate of https://github.com/yt-dlp/yt-dlp/issues/3428 since the fix for both are the same
replacing files may or may not work depending on how diverged the branches are. Either pull the branch as-is, or
git merge
it with master