![]() Then it takes the inputted mpd URL & licence and finds KEY# using our old friendly l3.py It takes the string that's on the clipboard, adds it to start of a barebones headers.py, extracts the request_id and token and copies it to existing text in headers.py. He'll also have to input (when prompted) the mpd URL, license URL and final file name that he wants. I didn't even realise somebody else had streamlined All4 player better than myself lol.Īll the user has to do is first copy to clipboard from that cURL to Python convertor. The guy behind made a Node.js library (the site seems to be an interface to it), so I just installed Node.js and that library ( npm install -global curlconverter & npm link curlconverter) and had the Python script run AbortRetryFail Wow, some food for thought there. It would be the easiest way to do what you want though if you have better luck than me. The uncurl Python library is meant to turn cURL command lines into requests calls, but I could never get it to work. This person worked out how their site works from top-to-bottom and the result is you don't even need anything from the website other than the URL of an episode. However, since the license server doesn't seem to impose a time limit, you can skip parsing the manifest yourself and just download the encrypted episode in its entirety with yt-dlp or whatever first using the manifest URL, then read out the PSSH from the encrypted audio file - something like - and then make the license request. ![]() I didn't bother to attempt the manifest download part for this site, but I did confirm the PSSH is in the audio init segment. The "proper" way to do it (as done by the site itself): you need the manifest URL (which you have because you copied it from your browser or you managed to replicate the requests the site makes to the ITV API in your script) from it, you need to find the audio initialization segment, strip off the manifest filename from the manifest URL, append the BaseURL part to the URL and then the segment name, download said segment and then find the pssh box in the segment. Is everybody else getting similar?įor this site, that takes a bit of work. That is crappy 896x504 around 1400K with the godawful 96Kbps audio. All I'm getting is exactly what ITV Hub was. All the advertising hype about it was claiming it will be glorious 1080p. I'd love python code where you simply input the CURL into my script and it does the conversion for you, returning with a string (instead of having to do it manually).īack to ITVX. All4, Disc+) that require you to get the CURL(bash), input into a CURL to Python convertor. I'd love to know how to scrape that PSSH value using code within my script instead of manually having to copy/paste it.Īnother one I'd like to automate. ![]() One thing I haven't worked out how to do yet, if anybody could help or contact me. I'm trying to automate my python scripts for all the UK TV webplayers. It's actually the same method as it has been for Britbox. I'd already sussed it out, mine's similar to your method. Good info for others to follow so thanks for that.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |