+ Removed base64 encoding

This commit is contained in:
BuildTools 2024-11-25 11:28:04 +01:00
parent c0b6b74b09
commit be0e82645e
4 changed files with 4 additions and 4 deletions

View File

@ -10,4 +10,4 @@ from .session import *
from .xml_key import * from .xml_key import *
from .xmrlicense import * from .xmrlicense import *
__version__ = "0.3.5" __version__ = "0.3.6"

View File

@ -113,7 +113,7 @@ class RemoteCdm(Cdm):
raise ValueError(f"Cannot get Challenge, {r['message']} [{r['status']}]") raise ValueError(f"Cannot get Challenge, {r['message']} [{r['status']}]")
r = r["data"] r = r["data"]
return r["challenge_b64"] return r["challenge"]
def parse_license(self, session_id: bytes, license_message: str) -> None: def parse_license(self, session_id: bytes, license_message: str) -> None:
if not license_message: if not license_message:

View File

@ -155,7 +155,7 @@ async def get_license_challenge(request: web.Request) -> web.Response:
"status": 200, "status": 200,
"message": "Success", "message": "Success",
"data": { "data": {
"challenge_b64": base64.b64encode(license_request.encode()).decode() "challenge": license_request
} }
}, status=200) }, status=200)

View File

@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
[tool.poetry] [tool.poetry]
name = "pyplayready" name = "pyplayready"
version = "0.3.5" version = "0.3.6"
description = "pyplayready CDM (Content Decryption Module) implementation in Python." description = "pyplayready CDM (Content Decryption Module) implementation in Python."
license = "CC BY-NC-ND 4.0" license = "CC BY-NC-ND 4.0"
authors = ["DevLARLEY, Erevoc", "DevataDev"] authors = ["DevLARLEY, Erevoc", "DevataDev"]