From be0e82645e74a9d2d42c4e2ab3abacebfe74fd69 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Mon, 25 Nov 2024 11:28:04 +0100 Subject: [PATCH] + Removed base64 encoding --- pyplayready/__init__.py | 2 +- pyplayready/remotecdm.py | 2 +- pyplayready/serve.py | 2 +- pyproject.toml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pyplayready/__init__.py b/pyplayready/__init__.py index a64dfd0..aba3ffd 100644 --- a/pyplayready/__init__.py +++ b/pyplayready/__init__.py @@ -10,4 +10,4 @@ from .session import * from .xml_key import * from .xmrlicense import * -__version__ = "0.3.5" +__version__ = "0.3.6" diff --git a/pyplayready/remotecdm.py b/pyplayready/remotecdm.py index 9f3d8ce..1a405fd 100644 --- a/pyplayready/remotecdm.py +++ b/pyplayready/remotecdm.py @@ -113,7 +113,7 @@ class RemoteCdm(Cdm): raise ValueError(f"Cannot get Challenge, {r['message']} [{r['status']}]") r = r["data"] - return r["challenge_b64"] + return r["challenge"] def parse_license(self, session_id: bytes, license_message: str) -> None: if not license_message: diff --git a/pyplayready/serve.py b/pyplayready/serve.py index e40a4d1..b17da80 100644 --- a/pyplayready/serve.py +++ b/pyplayready/serve.py @@ -155,7 +155,7 @@ async def get_license_challenge(request: web.Request) -> web.Response: "status": 200, "message": "Success", "data": { - "challenge_b64": base64.b64encode(license_request.encode()).decode() + "challenge": license_request } }, status=200) diff --git a/pyproject.toml b/pyproject.toml index c7230ed..2938eed 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "pyplayready" -version = "0.3.5" +version = "0.3.6" description = "pyplayready CDM (Content Decryption Module) implementation in Python." license = "CC BY-NC-ND 4.0" authors = ["DevLARLEY, Erevoc", "DevataDev"]