yt-dlp: [ArteTV] Unable to download JSON metadata - HTTP Error 404: Not Found

Checklist

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)

Commits related to this issue

Most upvoted comments

Yes indeed, that’s sad. Can someone please put the fix to the next version?

@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).

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.

I can’t compile yt-dlp with the command: make

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 a make. You’ll have a new executable file yt-dlp that you can use normally.

Dostal jsem tento odkaz: https://raw.githubusercontent.com/yt-dlp/yt-dlp/27cadeeaca7ab2398aed0228fac3ca92bdf2de04/yt_dlp/extractor/arte.py . Software s úpravou se mi nepodařilo zkompilovat.

Jsem pod ubuntu: Udělal jsem make. make COLUMNS=80 /usr/bin/env python3 yt_dlp/__main__.py --ignore-config --help | /usr/bin/env python3 devscripts/make_readme.py /usr/bin/env python3 devscripts/make_contributing.py README.md CONTRIBUTING.md /usr/bin/env python3 devscripts/make_issue_template.py .github/ISSUE_TEMPLATE_tmpl/1_broken_site.yml /usr/bin/env python3 devscripts/make_issue_template.py .github/ISSUE_TEMPLATE_tmpl/2_site_support_request.yml /usr/bin/env python3 devscripts/make_issue_template.py .github/ISSUE_TEMPLATE_tmpl/3_site_feature_request.yml /usr/bin/env python3 devscripts/make_issue_template.py .github/ISSUE_TEMPLATE_tmpl/4_bug_report.yml /usr/bin/env python3 devscripts/make_issue_template.py .github/ISSUE_TEMPLATE_tmpl/5_feature_request.yml /usr/bin/env python3 devscripts/make_issue_template.py .github/ISSUE_TEMPLATE_tmpl/6_question.yml /usr/bin/env python3 devscripts/make_supportedsites.py supportedsites.md git shortlog -s -e -n | awk '!(out[$NF]++) { $1="";sub(/^[ \t]+/,""); print}' > .mailmap (read log message from standard input) pak nic. Můžeš mi pomoci

Working for me too. Will this soon be merged in master?

Indeed, not fixed. Can’t download with the v2022.05.18 version.

@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