Add Youku by request

This commit is contained in:
FoxRefire 2024-05-06 17:52:57 +09:00
parent a4e6489d1e
commit 083587d69d
3 changed files with 13 additions and 0 deletions

View File

@ -41,6 +41,7 @@
<option value="Polsat">Polsat</option>
<option value="RedBee">Red Bee Media</option>
<option value="thePlatform">thePlatform</option>
<option value="Youku">Youku</option>
</select><br>
<input type="button" id="guess" value="Guess!"><br>

11
python/schemes/Youku.py Normal file
View File

@ -0,0 +1,11 @@
import urllib.parse
from pyodide.ffi import to_js
payload = urllib.parse.parse_qs(base64.b64decode(licBody.encode()).decode())
challengeB64 = base64.b64encode(challenge).decode()
payload['licenseRequest'] = challengeB64
payload = urllib.parse.urlencode(payload)
res = await js.corsFetch(licUrl, "POST", to_js(licHeaders), payload)
res = json.loads(base64.b64decode(res.encode()).decode())
licence = base64.b64decode(res['data'].encode())

View File

@ -7,6 +7,7 @@ corusappservices.com/authorization/widevine/getresourcekey$$GlobalTV
b2c-www.redefine.pl/rpc/drm$$Polsat
widevine.entitlement.eu.theplatform.com$$thePlatform
cdp/catalog/GetPlaybackResources$$Amazon
drm-license.youku.tv$$Youku
contentlicenseservice/v1/licenses
media-license-server/validate-auth-token
wv-keyos.licensekeyserver