Add another license server used in Canal+
This commit is contained in:
9
python/schemes/CanalPlus2.py
Normal file
9
python/schemes/CanalPlus2.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import re
|
||||
b64challenge = base64.b64encode(challenge).decode()
|
||||
res = await (await pyfetch(licUrl,
|
||||
method="POST",
|
||||
headers=licHeaders,
|
||||
body=b64challenge
|
||||
)).text()
|
||||
|
||||
licence = base64.b64decode(re.search(".*(.*)<\/license>", str(res))[2].encode())
|
||||
Reference in New Issue
Block a user