Hi everyone,
I'm looking for help with a license request for a on Sooka.my. My script keeps getting an "Invalid license challenge" error.
Video Link: https://sooka.my/watch/movie/1fc22f92-207c-4ff1-906c-3a33ceb31f84 (Note: This is a free-to-watch with a free account. Geo-restricted to Malaysia.)
The Error: {"code":170101,"message":"Invalid license challenge."}
My Headers and Payload: I am using a private L3 WVD and Python requests. I've matched the X-Media-Id and Authorization headers from my browser's network tab.Code:License URL: https://license.ctrp.astro.com.my/licenseServer/widevine/v1/astro/license?contentId=16fa4db42f4bfe44bde994fb756976ca-40a1412172098afb28a4-1 PSSH: AAAAMnBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAABISEBha/MX4ilFpt+3sGGraDMo=
I am sending the JSON payload using Python requests with separators=(',', ':') to ensure there is no extra whitespace. My X-Media-Id and Authorization headers match the browser's network logs exactly.Code:Payload: { "contentID": "16fa4db42f4bfe44bde994fb756976ca-40a1412172098afb28a4-1", "contentType": 1, "authorizationToken": "eyJhbG...[REDACTED]", "authorizationTokenType": "1", "licenseChallenge": "[BASE64_CHALLENGE]", "playbackSessionCookie": null }
Any help would be appreciated!
+ Reply to Thread
Results 1 to 4 of 4
-
-
use WidevineProxy2
Code:N_m3u8DL-RE "https://vodc.dp.sooka.my/16fa4db42f4bfe44bde994fb756976ca-40a1412172098afb28a4-1/16fa4db42f4bfe44bde994fb756976ca-40a1412172098afb28a4-1/index.mpd" -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:146.0) Gecko/20100101 Firefox/146.0" -H "Accept: */*" -H "Referer: https://sooka.my/" -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3NjcyMDE1MDIsImlzcyI6IlZSIiwiZXhwIjoxNzY3MjMwMzAyLCJ3bXZlciI6Mywid21pZGZtdCI6ImFzY2lpIiwid21pZHR5cCI6MSwid21rZXl2ZXIiOjMsIndtdG1pZHZlciI6NCwid21pZGxlbiI6NTEyLCJ3bW9waWQiOjMyLCJ3bWlkIjoiZThjYWZiYTEtMWE5NS00NDhhLWIwOTYtNmIxZWVjYjQ4YTMzIiwiZmlsdGVyIjoiKHR5cGU9PVwidmlkZW9cIiYmRGlzcGxheUhlaWdodDw9NDgwKXx8KHR5cGU9PVwiYXVkaW9cIiYmZm91ckNDIT1cImFjLTNcIil8fCh0eXBlIT1cInZpZGVvXCImJnR5cGUhPVwiYXVkaW9cIikiLCJwYXR0ZXJuIjoiMTZmYTRkYjQyZjRiZmU0NGJkZTk5NGZiNzU2OTc2Y2EtNDBhMTQxMjE3MjA5OGFmYjI4YTQtMSJ9.UvvBUHlgzLQ0vDUIsbLF9LAhCsMKIYcGQLySlM_V-ss" -H "Origin: https://sooka.my" --key 185afcc5f88a5169b7edec186ada0cca:1a222626a4d6df4b270f983b773a5238 --use-shaka-packager -M format=mkv
-
The extension method you provided worked perfectly. I was finally able to fetch the keys and decrypt the streams. Thank You
-
Same here — @$tro whitelisting Chrome's built-in CDM only (i tested 5 different .wvd files, all rejected). WidevineProxy2 in real Chrome works as a workaround: hooks the EME stack, captures keys after Chrome's whitelisted CDM finishes the license dance, then feed keys + manifest + Bearer JWT into N_m3u8DL-RE.
The catch: it requires manually playing each video in Chrome. Painful for batch (53-episode season = 53 manual playbacks).
Anyone got tips for automating this? Stuff i tried that didn't work:
Playwright bundled Chromium → $ooka detects navigator.webdriver, silently redirects watch URLs to show landing
Stealth flags (--disable-blink-features=AutomationControlled, override navigator.webdriver) → still fires [2006] error
Copying Chrome's WidevineCdm/ into Playwright Chromium → CDM loads but player still fails at init
Playwright channel="chrome" → extension loading unsupported
Currently falling back to a script that automates everything around the Chrome step, but the manual play per episode is still the bottleneck. Any pointers appreciated.
Similar Threads
-
widevine request error
By shakir9022 in forum Video Streaming DownloadingReplies: 46Last Post: 12th Mar 2024, 07:14 -
decrypt widevine error unable to parse license - check protobufs
By chutuanpr0 in forum Video Streaming DownloadingReplies: 10Last Post: 10th Jul 2023, 10:48 -
widevine-l3-decryptor gives an error after changing private key
By HORDTHIONZAC in forum Video Streaming DownloadingReplies: 6Last Post: 17th Jun 2023, 07:25 -
error downloading from kijk.nl widevine
By TopSkillGamer in forum Video Streaming DownloadingReplies: 3Last Post: 21st Apr 2022, 23:29 -
Widevine Decryptor error
By thegeek in forum Video Streaming DownloadingReplies: 5Last Post: 1st Jun 2021, 09:09



Quote