Add Canal+ by request (untested by me)
This commit is contained in:
7
python/schemes/CanalPlus.py
Normal file
7
python/schemes/CanalPlus.py
Normal file
@@ -0,0 +1,7 @@
|
||||
payload = loadBody("json")
|
||||
|
||||
b64challenge = base64.b64encode(challenge).decode()
|
||||
payload['ServiceRequest']['InData']['ChallengeInfo'] = b64challenge
|
||||
|
||||
res = await corsFetch(licUrl, "POST", licHeaders, payload, "json")
|
||||
licence = res['ServiceResponse']['OutData']['LicenseInfo']
|
||||
Reference in New Issue
Block a user