Add Youku by request
This commit is contained in:
parent
a4e6489d1e
commit
083587d69d
@ -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
11
python/schemes/Youku.py
Normal 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())
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user