Add another license server used in Canal+

This commit is contained in:
ElCap13
2024-06-14 11:49:52 +09:00
parent 0c7b9507f6
commit 361d6d58c0
3 changed files with 11 additions and 0 deletions

View 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())