yt-dlp: CeskaTelevize broken
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
- I’m reporting that a supported site is broken
- I’ve verified that I’m running yt-dlp version 2023.03.04 (update instructions) or later (specify commit)
- I’ve checked that all provided URLs are playable in a browser with the same IP and same login details
- I’ve checked that all URLs and arguments with special characters are properly quoted or escaped
- I’ve searched known issues and 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
Should be available everywhere
Provide a description that is worded well enough to be understood
Looks like something has been changed in this web today.
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': TruetoYoutubeDLparams instead - Copy the WHOLE output (starting with
[debug] Command-line config) and insert it below
Complete Verbose Output
[debug] Command-line config: ['-vU', 'https://www.ceskatelevize.cz/porady/10078945173-kouzlo-afriky/205552110600001/']
[debug] User config "C:\Users\jiri\yt-dlp.conf": ['--user-agent', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36', '--no-check-certificate', '--sponsorblock-remove', 'all', '-o', 'D:\\Downloads\\yt-dlp\\%(autonumber)03d_%(title)s.%(ext)s', '--no-mtime', '--format', 'bestvideo[ext=mp4][height<=1080][fps<=30]+bestaudio[ext=m4a]/best[ext=mp4][height<=1080][fps<=30]/best[height<=1080][fps<=30]/best', '--merge-output-format', 'mkv', '--ffmpeg-location', 'C:\\Apps\\ffmpeg\\bin\\ffmpeg.exe', '--all-subs', '-i', '--compat-options', 'multistreams', '--remux-video', 'mkv', '--add-header', 'accept-language: cs,fi;q=0.9,en-US;q=0.8,en;q=0.7,en-GB;q=0.6', '--add-header', 'sec-ch-ua: "Chromium";v="94", "Google Chrome";v="94", ";Not A Brand";v="99"', '--add-header', 'sec-ch-ua-arch: "x86"', '--add-header', 'sec-ch-ua-bitness: "64"', '--add-header', 'sec-ch-ua-full-version: "94.0.4606.71"', '--add-header', 'sec-ch-ua-mobile: ?0', '--add-header', 'sec-ch-ua-model: ""', '--add-header', 'sec-ch-ua-platform: "Windows"', '--add-header', 'sec-ch-ua-platform-version: "10.0.0"', '--add-header', 'sec-fetch-dest: document', '--add-header', 'sec-fetch-mode: navigate', '--add-header', 'sec-fetch-site: none', '--add-header', 'sec-fetch-user: ?1', '--add-header', 'service-worker-navigation-preload: true', '--add-header', 'upgrade-insecure-requests: 1', '--add-header', 'alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"', '--add-header', 'cache-control: no-cache, no-store, max-age=0, must-revalidate']
[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@2023.03.04 [392389b7d] (win_exe)
[debug] Compatibility options: multistreams
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.19045-SP0 (OpenSSL 1.1.1k 25 Mar 2021)
[debug] exe versions: ffmpeg 4.4-full_build-www.gyan.dev (setts), ffprobe 4.4-full_build-www.gyan.dev, phantomjs 2.1.1
[debug] Optional libraries: Cryptodome-3.17, brotli-1.0.9, certifi-2022.12.07, mutagen-1.46.0, sqlite3-2.6.0, websockets-10.4
[debug] Proxy map: {}
[debug] Loaded 1786 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Available version: stable@2023.03.04, Current version: stable@2023.03.04
Current Build Hash: 5590c57bd0433ed239a2deaaf92e2ad6f37fe50f53664c821575cafe106a9421
yt-dlp is up to date (stable@2023.03.04)
[CeskaTelevize] Extracting URL: https://www.ceskatelevize.cz/porady/10078945173-kouzlo-afriky/205552110600001/
[CeskaTelevize] 205552110600001: Downloading webpage
[CeskaTelevize] 205552110600001: Getting IFRAME hash
ERROR: [CeskaTelevize] 205552110600001: Unable to download webpage: 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 "yt_dlp\extractor\common.py", line 694, in extract
File "yt_dlp\extractor\ceskatelevize.py", line 122, in _real_extract
File "yt_dlp\extractor\common.py", line 1097, in _download_webpage
File "yt_dlp\extractor\common.py", line 1048, in download_content
File "yt_dlp\extractor\common.py", line 882, in _download_webpage_handle
File "yt_dlp\extractor\common.py", line 839, in _request_webpage
File "yt_dlp\extractor\common.py", line 821, in _request_webpage
File "yt_dlp\YoutubeDL.py", line 3742, in urlopen
File "urllib\request.py", line 531, in open
File "urllib\request.py", line 640, in http_response
File "urllib\request.py", line 569, in error
File "urllib\request.py", line 502, in _call_chain
File "urllib\request.py", line 649, in http_error_default
urllib.error.HTTPError: HTTP Error 404: Not Found
About this issue
- Original URL
- State: open
- Created 4 years ago
- Reactions: 14
- Comments: 131 (30 by maintainers)
Commits related to this issue
- [ceskatelevize] update to March 2023 changes (#6539) — committed to mkubecek/yt-dlp by mkubecek 4 years ago
- [ceskatelevize] update to March 2023 changes (#6539) Note: we could even skip downloading the player.ceskatelevize.cz page completely as we do not actually need it to get the information we used to n... — committed to mkubecek/yt-dlp by mkubecek 4 years ago
- [ceskatelevize] update to March 2023 changes (#6539) Note: we could even skip downloading the player.ceskatelevize.cz page completely as we do not actually need it to get the information we used to n... — committed to mkubecek/yt-dlp by mkubecek 4 years ago
- [ceskatelevize] update to March 2023 changes (#6539) Note: we could even skip downloading the player.ceskatelevize.cz page completely as we do not actually need it to get the information we used to n... — committed to mkubecek/yt-dlp by mkubecek 4 years ago
Is a merge into yt-dlp/yt-dlp planned or is there something that prevents it?
Hi @User4516150 your link can be download with this build https://github.com/bashonly/yt-dlp/releases/tag/ceskatelevize enjoy
https://github.com/bashonly/yt-dlp/releases/tag/ceskatelevize
@asd123-007 @dirkf @bluenitepk
Hello. Now works this pre-release build of yt-dlp : https://github.com/bashonly/yt-dlp/releases/tag/ceskatelevize
You can change your yt-dlp version to this by using
yt-dlp --update-to bashonly/yt-dlp@ceskatelevizeThen you can return back to last official stable version of yt-dlp by using
yt-dlp --update-to yt-dlp/yt-dlpI managed to change the extractor so, that I am able to download at least an item of “porady”. Not tested much. Just the first attempt. Definitely not ready for production. Feel free to improve. It manages to download Czech subtitles as well. However, it does not choose the right format if “bestaudio+bestvideo” is not used (and I do not know why).
I tried to run it for:
There were some objections to the pull request which make perfect sense from project’s point of view but are kind of pain for someone unfamiliar with the yt-dlp code and even python. I tried to address them but things kept getting more and more complicated as I would also have to address unrelated issues which have existed before my pull request. At some point I gave up.
Right now I keep updating my
mk/czbranch by mergingmasteronce in a while and as long as it works well enough for my needs, I’m fine with it. Of course it would be much better to have the extractor fixed in mainline but I don’t think I’m the right person for such task. Anyone who is (unlike me) familiar with python and (unlike me) has time to do all the cleanups necessary for the pull request to be acceptable by the project is very much welcome to take over.G:>yt-dlp.exe https://www.ceskatelevize.cz/porady/898901-dobrodruzstvi-kriminalistiky/200353910560004/ [CeskaTelevize] Extracting URL: https://www.ceskatelevize.cz/porady/898901-dobrodruzstvi-kriminalistiky/200353910560004/ [CeskaTelevize] 200353910560004: Downloading webpage [CeskaTelevize] 200353910560004: Getting IFRAME hash ERROR: [CeskaTelevize] 200353910560004: Unable to download webpage: 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
G:>yt-dlp -U Latest version: stable@2023.12.30 from yt-dlp/yt-dlp yt-dlp is up to date (stable@2023.12.30 from yt-dlp/yt-dlp)
I have used the following temporary workaround to download a movie and an episode of a TV show.
https://github.com/std-move/yt-dlp/commit/7692c2d0ce82771b9866796d68efefb88c878cb9
It is not a proper fix, but should work for most things until such is made. Hope someone finds it useful.
I’ve found a workaround how to download video from CT . You’ll need a browser and its network monitor to catch .mpd file from source. For example here is source and from browser’s network monitor you’ll catch the link to .mpd file here.
The link to .mpd file is the URL for the yt-dlp.exe command line.
You can even use normal yt-dlp release 😉.
EDIT: It seems that .mpd file is valid only for some period of time.
@cimenta try
yt-dlp --update-to bashonly/yt-dlp@ceskatelevizewith your working installationI plan to tak a look at it again this weekend to see what should be kept and what can go and then submit a pull request.
I confirm the workaround functionality (yt-dlp stable@2025.04.30) and the temporariness of the .mpd file addres. In my case, for example:
Thanks for sharing 👍
(Finally, a masterpiece that makes Vogon poetry sound like Shakespeare! 🙈🙉🙊)
@pschonmann Try using this version https://github.com/yt-dlp/yt-dlp/issues/6539#issuecomment-1565069704
Open issue = Not resolved
@jirih Regarding your comment - I would add following 2 changes:
Hi, thanks @JakubSvestka for hints and API.
I managed to create a wrapper around
yt-dlp, which extractsidecnumber (this is the key information) from a webpage and pass it to CT API, output is processed byjqandyt-dlpmanages the rest. Works for series (as previous mentioned commands) and also movies. It is a simple bash script (so no windows compatibility) depending on:jq- see https://jqlang.github.io/jq/curl,awk,sedandheadunix commandsSave it to a file (add execution privilege) and run it with URL as first parameter.
Examples of usage:
Naming convention of resulting file is not so beautiful (regarding series, because number of episode is at the end), but maybe it will be useful for others 😃
@huh02 @JakubSvestka
Success! Thanks for cooperation.
@dirkf @bashonly @mkubecek @mtrakal @Radek-Bastar
I tried to download video from here https://www.ceskatelevize.cz/porady/10116288585-archiv-ct24/224411058210005/ but without success. I tried official version “stable@2024.12.23” and version “bashonly/yt-dlp@ceskatelevize build 2024.12.13.144700” and version from “mkubecek”. With the second and third version was downloaded short video with static picture containing text “Je nám líto, ale Vaše verze aplikace již není podporována, doporučujeme aktualizaci/We’re sorry, but your version of the app is no longer supported, we recommend updating”. You can see it here https://imgur.com/y9tFOGE
@bashonly sorry my bad. I deleted my last post when I realized it did not work because the movie was just on TV. Once it finished I was able to download. At the time I tried there was a play button but later on the button disappeared. So I realized my mistake.
@barth11 if it’s DRM-protected there is nothing we can do. yt-dlp does not support downloading DRM content and no help will be provided on this tracker for it.
@pschonmann Unfortunately the fix hasn’t been merged into the master branch yet, so it’s not part of regular releases. As of now, you’d need to run from source and cherry-pick the fix or use custom builds with it included.
IMHO the key question is if this used to work the way you expect before the March changes. (In other words, if it is actually related to my pull request.) To be honest, I do not really have ambition to take over maintaining this extractor, all I wanted was to make it work again after recent site rework. Unfortunately this got out of hand quickly with a series of follow-up requests to address issues I believe already existed before. I’m not really familiar with the yt-dlp codebase - or even python, actually - and fixing every issue that has accumulated over years is definitely not something I would like to invest my time into.
@mufak76
Hereis compiled version which should not depend on anything.