diff --git a/popup.html b/popup.html index ec08c9c..3da7a42 100644 --- a/popup.html +++ b/popup.html @@ -34,6 +34,7 @@ Challenge scheme CommonWV + Amazon Comcast Xfinity DRMToday GlobalTV diff --git a/python/schemes/Amazon.py b/python/schemes/Amazon.py new file mode 100644 index 0000000..deef01d --- /dev/null +++ b/python/schemes/Amazon.py @@ -0,0 +1,8 @@ +import urllib.parse +from pyodide.ffi import to_js +payload = f"widevine2Challenge={urllib.parse.quote(base64.b64encode(challenge).decode())}&includeHdcpTestKeyInLicense=true" + +res = await js.corsFetch(licUrl, "POST", to_js(licHeaders), payload) +res = json.loads(base64.b64decode(res.encode()).decode()) +licence = base64.b64decode(res['widevine2License']['license'].encode()) + diff --git a/selectRules.conf b/selectRules.conf index efcc827..d781e23 100644 --- a/selectRules.conf +++ b/selectRules.conf @@ -6,6 +6,7 @@ lic.drmtoday.com$$DRMToday corusappservices.com/authorization/widevine/getresourcekey$$GlobalTV b2c-www.redefine.pl/rpc/drm$$Polsat widevine.entitlement.eu.theplatform.com$$thePlatform +cdp/catalog/GetPlaybackResources$$Amazon contentlicenseservice/v1/licenses media-license-server/validate-auth-token wv-keyos.licensekeyserver