Merge pull request #15 from azimabid00/main

Fixes whitespace issue
This commit is contained in:
hyugogirubato 2024-06-05 17:45:01 +02:00 committed by GitHub
commit 36d5f0db6a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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'