yt-dlp: [MiTele] Failed to download m3u8 information: HTTP Error 403: Forbidden (caused by )

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

  • I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

Region

US

Provide a description that is worded well enough to be understood

Site is geo-restricted however, using Spain IP worked well before. Issue is not fixed with the [telecinco] fix. Error message is Failed to download m3u8 information: HTTP Error 403: Forbidden (caused by <HTTPError 403: Forbidden>)

Provide verbose output that clearly demonstrates the problem

  • Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
  • If using API, add 'verbose': True to YoutubeDL params instead
  • Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output

yt-dlp -vU https://www.mitele.es/programas-tv/de-viernes/temporada-1/programa-44-40_013481363/player/
[debug] Command-line config: ['-vU', 'https://www.mitele.es/programas-tv/de-viernes/temporada-1/programa-44-40_013481363/player/']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version nightly@2024.09.26.232938 from yt-dlp/yt-dlp-nightly-builds [eabb4680f] (zip)
[debug] Python 3.10.12 (CPython x86_64 64bit) - Linux-6.8.0-45-generic-x86_64-with-glibc2.35 (OpenSSL 3.0.2 15 Mar 2022, glibc 2.35)
[debug] exe versions: ffmpeg 4.4.2 (setts), ffprobe 4.4.2
[debug] Optional libraries: Cryptodome-3.11.0, brotli-1.0.9, certifi-2020.06.20, mutagen-1.45.1, requests-2.25.1, secretstorage-3.3.1, sqlite3-3.37.2, urllib3-1.26.5, websockets-9.1
[debug] Proxy map: {}
[debug] Request Handlers: urllib
[debug] Loaded 1838 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp-nightly-builds/releases/latest
Latest version: nightly@2024.09.26.232938 from yt-dlp/yt-dlp-nightly-builds
yt-dlp is up to date (nightly@2024.09.26.232938 from yt-dlp/yt-dlp-nightly-builds)
[MiTele] Extracting URL: https://www.mitele.es/programas-tv/de-viernes/temporada-1/programa-44-40_013481363/player/
[MiTele] programa-44-40_013481363: Downloading webpage
[MiTele] 788908f4-0e96-47e2-baa7-e701beecbeb3: Downloading config JSON
[MiTele] 788908f4-0e96-47e2-baa7-e701beecbeb3: Downloading JSON metadata
[MiTele] 788908f4-0e96-47e2-baa7-e701beecbeb3: Downloading JSON metadata
[MiTele] 788908f4-0e96-47e2-baa7-e701beecbeb3: Downloading JSON metadata
[MiTele] 788908f4-0e96-47e2-baa7-e701beecbeb3: Downloading m3u8 information
ERROR: [MiTele] programa-44-40_013481363: Failed to download m3u8 information: HTTP Error 403: Forbidden (caused by <HTTPError 403: Forbidden>)
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 741, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/mitele.py", line 67, in _real_extract
    video_info = self._parse_content(pre_player['video'], url)
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/telecinco.py", line 102, in _parse_content
    formats = self._extract_m3u8_formats(
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 2031, in _extract_m3u8_formats
    fmts, subs = self._extract_m3u8_formats_and_subtitles(*args, **kwargs)
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 2053, in _extract_m3u8_formats_and_subtitles
    res = self._download_webpage_handle(
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 961, in _download_webpage_handle
    urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data,
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 910, in _request_webpage
    raise ExtractorError(errmsg, cause=err)

  File "/usr/local/bin/yt-dlp/yt_dlp/networking/_urllib.py", line 398, in _send
    res = opener.open(urllib_req, timeout=self._calculate_timeout(request))
  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 403: Forbidden

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 897, in _request_webpage
    return self._downloader.urlopen(self._create_request(url_or_request, data, headers, query, extensions))
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 4165, in urlopen
    return self._request_director.send(req)
  File "/usr/local/bin/yt-dlp/yt_dlp/networking/common.py", line 117, in send
    response = handler.send(request)
  File "/usr/local/bin/yt-dlp/yt_dlp/networking/_helper.py", line 208, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/bin/yt-dlp/yt_dlp/networking/common.py", line 340, in send
    return self._send(request)
  File "/usr/local/bin/yt-dlp/yt_dlp/networking/_urllib.py", line 403, in _send
    raise HTTPError(UrllibResponseAdapter(e.fp), redirect_loop='redirect error' in str(e)) from e
yt_dlp.networking.exceptions.HTTPError: HTTP Error 403: Forbidden

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 25 (9 by maintainers)

Commits related to this issue

Most upvoted comments

I was able to properly clone the fix branch and re-test with success. Here is how you do it: Enter this command _git clone --branch telecinco_header https://github.com/DarkZeros/yt-dlp.git_ Then cd /yt-dlp Then ./yt-dlp.sh followed by the URL

Thank you @DarkZeros

@arall also, does adding --xff ES to your command help?

@arall can you run the command again with --write-pages added to your command? yt-dlp will write several response pages to your current working directory as .dump files. could you please upload the one named c92ff3a3-3701-4f92-8251-e197153e2a28_https_-_cerbero.mediaset.es_.dump?

The content of that file is just:

{"code":40310}