Using stuff from this forum I've gleaned enough information to knock up a Bash script to download C5 programmes. The script takes manifest and licence URLs as input and uses N_m3u8DL-RE to produce a .mkv as output. Works a treat.
I'm using Stream Detector or Developer Tools to get manifest and licence details manually but ideally I'd like to get them as part of the script.
Any pointers on how I can achieve that, please. I've not had any success using Wireshark/tshark.
+ Reply to Thread
Results 1 to 6 of 6
In fact, you'll struggle even with python.
The mpd loads when the in browser video player loads, as it is supposed to. And upon loading requests the decryption key from the license server.
You're not gonna be able to automate using static scripts.
Playwright in python might help, but you ill need to work out the exact areas to look and manipulate.
good luck .
Thanks for the reply Sorenb.
Yes, I see that's how it works. But what I can't understand is how Stream Detector and Dev Tools can get the information but I can't.
Need a command-line version of Developer Tools!
a command line version of developer tools? No such thing. There's a reason why dev tools open within the browser.
The keys to decrypt the stuff on the web player for my5 change about once a week, so you would be editing your code every week once you figure out the right keys to decrypt the interesting bit of the web player.
My script extracts PSSH from the manifest and, together with the licence URL, gets the key from the 'Send Widevine Request' website. So the key isn't the problem.
What I was trying to do is find a way of getting the manifest and licence URLs without having to grab them manually from Developer Tools. Of course I could use wmctrl/xdotool to screen-scrape them but I was hoping to find something more elegant.