-
Notifications
You must be signed in to change notification settings - Fork 10.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't download ITV hub show #30265
Comments
Patch your yt-dl from PR #28955 and use it directly. Or use some other tool designed to download the media URL, maybe ffmpeg. However IIRC some bought-in ITV shows, possibly including Ellen, are DRM-protected and so the show may not be accessible even if you can download the linked media. |
Ah thanks. I'll at least try to download it and see if it's DRM-protected. How do I patch yt-dl on a mac? |
Depending on how you installed it, find the |
Thanks. I hate to keep asking, but not sure how to do the above. I've searched through my system files for that file, but can't find anything. I suspect I need to be doing something entirely different in order to find and replace that file. |
How did you install yt-dl?
Etc. |
@dirkf wrote:
... Am afraid that PR has been invalidated since yesterday, Nov 23rd 2021, because the ITVHub "people" started talking a la "master Yoda" (from Star Wars) 😄 ... See issue yt-dlp/yt-dlp#1775 and today's fix, yt-dlp/yt-dlp#1776, implemented in I, as much as others I suppose 😉 , would greatly value a similar fix on top of PR #28955... @sleaux-meaux (original author of that PR) or, perhaps, @dirkf (also UK-based, with a good - and highly appreciated 👍 - record of providing patches to many
This is my recollection, too; "The Ellen DeGeneres Show" on ITV's VOD service has always been DRM-only 😞 ...
(token has expired by now), which, in all probability, is DRM protected (cenc) ... |
When I put the above in, i get this: -rwxr-xr-x 1 root admin 1840311 24 Nov 11:02 /usr/local/bin/youtube-dl |
You have a Python script archive version, a !# line followed by a zip archive.
Replace the
Finally install |
I'm getting this error when running the above command:
|
Try the updated version. |
That worked. Just waiting for the updated itv.py file and then i can test it out |
Here is PR #30266 which basically back-ports the yt-dlp extractor for ITV. As far as I can see, the API request for test However, test Bad news for OP. As suggested, the extractor identifies the Ellen episode as 'No downloads available', because the available media types are:
So no non-DRM formats. |
Congrats; works as expected! 👍
|
How do I do that part of the install? Done everything else so far! |
Probably s/t like:
|
This is weird; logged-in status doesn't seem to be relevant:
I suspect Cloudflare or similar nonsense, though maybe ITV can do that by itself. |
Hmm. Since updating, I now get this error when trying to use youtube-dl:
|
The self-extracting archive has gone awry. Try the process again. Also check this output for
|
Maybe I did something wrong when trying to update the itv.py file. I unzipped, opened the file and pasted in the contents of the updated itv.py file, re-zipped it back up. Then ran:
|
Here is what I get: This is the actual video I'm trying to download: https://www.itv.com/hub/the-ellen-degeneres-show/2a4350a1027 |
We've already established that you won't be able to download a playable version of this show using yt-dl. For patching the installation, it looks like the re-compression didn't work properly. IIRC Finder's Compress doesn't have an update-in-place function, unlike perhaps something like iZip. The actual script used to create the Unix self-extracting version of yt-dl is in the Makefile; it's meant to be run in the
|
Hmm. I might not have completely understood the instruction. I just tried doing exactly what you said. I replaced USER: PASS with the ITV player user/pass (as I assume that's what i needed to do) using the following command:
And the output is this:
I'm sorry im not tech savvy. Was replacing USER:PASS with my actual ITV player user/pass the right or wrong thing to do? |
Same here, that PR works perfectly. |
@89z : IINM, you're located in the US, but ITVHub is a service limited to UK IPs only 😞 (actually, to a fraction of the whole UK, e.g. Scottish IPs may be blacklisted; in Scotland, STV has the rights of most ITV content...). For many years it was still possible to easily circumvent this (soft) geo-blocking by an Most sadly, ITV have strengthened their geo-fencing schemes considerably, first by imposing geo-restriction (ACLs, Access-Control-Lists) on the actual stream CDN(s) (so that an overseas user isn't able to download the stream even when the API was "fooled" to generate a master HLS playlist) and secondly, more recently, they even fully geo-restricted access to the playlist API itself (i.e. the
However, if inside England or via using a whitelisted UK VPN 😉 , the "story" is different:
So please, don't jump to conclusions ("as it doesnt work") simply based on your own findings... |
Today's PR #30266 seems to be reliable for me. Any additional testing is very welcome. |
Checklist
Question
I am trying to download a show from the ITV hub (here: https://www.itv.com/hub/the-ellen-degeneres-show/2a4350a1024). Using Stream Detector on Firefox, I get the following code to paste into Youtube-dl:
youtube-dl --no-part --restrict-filenames --user-agent "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:94.0) Gecko/20100101 Firefox/94.0" --add-header "Cookie:Itv.Session={%22tokens%22:{%22content%22:{%22entitlement%22:{%22purchased%22:[]%2C%22failed_availability_checks%22:[]%2C%22source%22:%22%22}%2C%22email_verified%22:true%2C%22access_token%22:%22eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2F1dGguaXR2LmNvbSIsInN1YiI6IjZkYmFmYWU3LTU0NzYtNDNmYS1hYWEwLTAwODQxYmY2OTFkMSIsImV4cCI6MTYzNzg0MjMwMiwiaWF0IjoxNjM3NzUyMzAyLCJicm9hZGNhc3RFcnJvck1zZyI6IiIsImJyb2FkY2FzdFJlc3BvbnNlQ29kZSI6IjIwMCIsImJyb2FkY2FzdGVyIjoiSVRWIiwiaXNBY3RpdmUiOnRydWUsIm5vbmNlIjoiZGdSQ1gzWWVkNURvWWl6VjhQN20iLCJuYW1lIjoiU2VhbiIsInNjb3BlIjoiY29udGVudCIsImVudGl0bGVtZW50cyI6W10sInBheW1lbnRTb3VyY2UiOiIiLCJzaG93UHJpdmFjeU5vdGljZSI6ZmFsc2UsInVuZGVyMTgiOmZhbHNlfQ.Da_C_X8gHGWh6QBo1Im_hqspwvo9z8XVKkItpCqKW9BYtJVivSSB5eqO-b1Q9U8fk9QN5IqXTM2nOHe22BUTm02rcKUXgsTJ41pRqaAuAquuSXkPpZSnOgbiE0flsEnQN78mfTzs0k9jvLO-A0QT939NowHCcd8_BfbdFCrE11FI0zCFyTHKatVuS9j1bDK98Nd2O61iphtBcmNBwaql1p94okb6QWYSI3kqFyNBICgziTwi-6t-kCZ76_wSopIPUuQ21oRz4911esS3kBId4SdrUcSpezAgUS-_GS3XpCMiOLWGJ69fXU3qzkXP8NRLYSxcf_RTU4QkmWs6kjvaXg%22%2C%22token_type%22:%22bearer%22%2C%22refresh_token%22:%22eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2F1dGguaXR2LmNvbSIsInN1YiI6IjZkYmFmYWU3LTU0NzYtNDNmYS1hYWEwLTAwODQxYmY2OTFkMSIsImV4cCI6NDc5MzQyNTkwMiwiaWF0IjoxNjM3NzUyMzAyLCJub25jZSI6ImRnUkNYM1llZDVEb1lpelY4UDdtIiwic2NvcGUiOiJjb250ZW50IiwiYXV0aF90aW1lIjoxNjM3NzUyMzAyfQ.GV1cqako7yaGvA393O9oa9cVhX0I-Sw5M2wSR1gg5RAYt1lzYIY0T2nLUu3xLte8p1JqlAVb_1IEV_Yts12dxQTHVmDupqA33dKIlA0Pxxkq1Mv8x5WjjOuVgnmjf1lmm7Ygt8560V9olis5fKlONa4QNrsX1c4O0RNr630WzPBbFk6e1PsGJ2bVOBxp5ja8kzun-_oOCjonrQOxTHj3-e9RmyCVJdbRLzpFkfJf_n03zNXly_d-uBad3vodfHemv8dQJeXXKSDQGVAq3idlPj77bEHfRkfmE6yUMBjMlZSF_C3HfqomFyN84wNw9JiQLMumwP2tHNpfnYVvqBWy4Q%22}}%2C%22sticky%22:true}; mid=1709081696670734686; _cs_c=1; _cs_id=8fcd982a-e516-ad59-e9f0-5ec3cfcfacdc.1637751312.1.1637752301.1637751312.1.1671915312583; _cs_s=7.0.0.1637754101993; __utma=187186800.658762206.1637751313.1637751313.1637751313.1; __utmb=187186800.13.9.1637752166735; __utmc=187186800; __utmz=187186800.1637751313.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); _hjSessionUser_1586194=eyJpZCI6IjcyMmJhMjBmLWU5MzEtNTA1YS1iYjYyLWFhMTI3NTBkMTViOSIsImNyZWF0ZWQiOjE2Mzc3NTEzMTMwODcsImV4aXN0aW5nIjp0cnVlfQ==; _hjFirstSeen=1; _hjSession_1586194=eyJpZCI6IjQ2MTY2NDM1LThhZTQtNGJhOC05NjAzLTM4ZTBjOGVjMjY1MiIsImNyZWF0ZWQiOjE2Mzc3NTEzMTMwOTN9; _hjAbsoluteSessionInProgress=0; Itv.CookiePolicy.v2=accepted; Itv.Region=ITV|null; __utmt_UA-17825253-53=1" --referer "https://www.itv.com/" "https://itvpnpdotcom.cdn1.content.itv.com/2-4350-1024-001/18/1/VAR028/2-4350-1024-001_18_1_VAR028.ism/.mpd?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9pdHZwbnBkb3Rjb20uY2RuMS5jb250ZW50Lml0di5jb20vMi00MzUwLTEwMjQtMDAxLzE4LzEvVkFSMDI4LzItNDM1MC0xMDI0LTAwMV8xOF8xX1ZBUjAyOC5pc20vKiIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTYzNzc3NTcwM319fV19&Signature=InPnv~NiUQzV2St09QxkG5u63iiUWKbWsV4V5csiShiz0YOEVf9gy7OvYAPRCPXjSg2T95wzshNY8Whl92I2AMBv69jyyrY0s8zGI7ja6dMxZB0mbxyg5L8M15Y2TnwwgTSnfqpDfX9HkZdBZXnhRt~Ko6cbPf-Ao8NcI0-DcNFKrAuw8AQIECo-F4YFdECk9AcqPcgWvIVJngUYhQmQY97foz2~13UhTK7H-DbGqyYyocgt-YDeNfBCnLfoBotVDqe2q6laK81wX5BGHiEKzj44t3hHqE-H4GUhfq8vHeHYbyeR92pDSjAlNGuW4CYxQqXRTQl70fI6dN~PP32rKg__&Key-Pair-Id=APKAJB7PCFZAZHWZVIBA"
However, this produces the following error:
ERROR: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
The text was updated successfully, but these errors were encountered: