DevLARLEY / WidevineFetch

Parses 'Copy as fetch' of a license request, locates the challenge if license wrapping is being used, extracts the pssh data and re-sends the request.
GNU General Public License v3.0
58 stars 15 forks source link

Can't WEB-DL live stream content! #11

Closed Kh4N02 closed 1 week ago

Kh4N02 commented 1 week ago

Hi bro, hope you are good 😄

Were trying today after long time, as cricket content was broadcasted today on Amazon Prime Video Australia, tried to web-dl using this script but unfortunately giving some errors..

After I've entered the license as Fetch, in the command prompt it gave me this error:

Traceback (most recent call last): File "D:\Scripts\WidevineFetch-main\widevine-fetch.py", line 240, in run if keys := self._get_keys( ^^^^^^^^^^^^^^^ File "D:\Scripts\WidevineFetch-main\widevine-fetch.py", line 457, in _get_keys if not (pssh := self.module.EXTRACT_PSSH(challenge, url, headers)): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Scripts\WidevineFetch-main\modules\amazon_480p.py", line 114, in extract_pssh return _extract_pssh(manifest_request.text) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Scripts\WidevineFetch-main\modules\amazon_480p.py", line 72, in _extract_pssh for content_protection in _ensure_list(ad_set["ContentProtection"]):


KeyError: 'ContentProtection'

Could you please help? Thanks 👍 
DevLARLEY commented 1 week ago

can you post the manifest?

Kh4N02 commented 1 week ago

Sorry for the delay, had issues with my prime account and couldn't login, fixed now.

The manifest that shows when I enter the license as Fetch in the script is: https://jab.ll.ww.aiv-cdn.net/iad-nitro/jab-assets/jab-prod-iad/live/dash-sd/out/v1/968200c372ca4b96b004538042ebb41c/okvpfflfu3j5/cenc-sd-8765c5.mpd

The one that shows in the network tab using inspect elements is: https://aivottjab-a.akamaihd.net/iad-nitro/jab-assets/jab-prod-iad/live/dash/out/v1/108bfdad52584b3dac8da45d0b679e7d/okvpfflfu3j5/cenc-bc1648.mpd?amznDtid=AOAGZA014O5RE&encoding=segmentBase

DevLARLEY commented 1 week ago

I updated the PSSH extraction mechanism, can you check again?

Kh4N02 commented 1 week ago

Now it's working, thanks! Will download matches in 540p25 now. 😄❤️