From 4569d2173796090843b1a743a5ba3661cb58d071 Mon Sep 17 00:00:00 2001 From: chu23465 <130033130+chu23465@users.noreply.github.com> Date: Tue, 26 Nov 2024 19:12:32 +0530 Subject: [PATCH] Update device.py for better naming --- pyplayready/device.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyplayready/device.py b/pyplayready/device.py index 58d71be..46ffd65 100644 --- a/pyplayready/device.py +++ b/pyplayready/device.py @@ -102,4 +102,4 @@ class Device: def get_name(self): name = f"{self.group_certificate.get_name()}_sl{self.group_certificate.get_security_level()}" - return ''.join(char for char in name if (char.isalpha() or char in ['_', '-', ' '])).strip().lower().replace(" ", "_") + return ''.join(char for char in name if (char.isalnum() or char in '_- ')).strip().lower().replace(" ", "_")