From 8284a8cb1a30fb592725f50020e66e9cc1895f35 Mon Sep 17 00:00:00 2001 From: azimabid00 <110490898+azimabid00@users.noreply.github.com> Date: Tue, 4 Jun 2024 17:26:17 +0800 Subject: [PATCH] Update cdm.py --- extractor/cdm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extractor/cdm.py b/extractor/cdm.py index bb5050c..250ae8a 100644 --- a/extractor/cdm.py +++ b/extractor/cdm.py @@ -249,7 +249,7 @@ class Cdm: private_key = self.keys.get(key_id) if private_key: - path = Path() / 'device' / str(self.device.name) / 'private_keys' / str(drm_certificate.system_id) / str(key_id)[:10] + path = Path() / 'device' / str(self.device.name.strip().lower().replace(' ', '_')) / 'private_keys' / str(drm_certificate.system_id) / str(key_id)[:10] path.mkdir(parents=True, exist_ok=True) path_client_id = path / 'client_id.bin' path_private_key = path / 'private_key.pem'