Add Comcast Xfinity(Shaw.ca)

This commit is contained in:
FoxRefire
2024-05-02 06:56:47 +09:00
parent ef0444331d
commit aba1244aca
3 changed files with 9 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
from pyodide.ffi import to_js
req = json.loads(base64.b64decode(licBody.encode()).decode())
b64challenge = base64.b64encode(challenge).decode()
req['licenseRequest'] = b64challenge
res = await js.corsFetch(licUrl, "POST", to_js(licHeaders), json.dumps(req))
res = json.loads(base64.b64decode(res.encode()).decode())
licence = base64.b64decode(res['license'].encode())