From d18a5de0d0dc14dc0f2c9c3b0d4d89dafee0e1d9 Mon Sep 17 00:00:00 2001 From: Andy Date: Wed, 10 Sep 2025 00:53:52 +0000 Subject: [PATCH] fix: Improve import ordering and code formatting - Reorder imports in decrypt_labs_remote_cdm.py for better organization - Clean up trailing whitespace in SQLite.py --- unshackle/core/cdm/decrypt_labs_remote_cdm.py | 2 +- unshackle/vaults/SQLite.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/unshackle/core/cdm/decrypt_labs_remote_cdm.py b/unshackle/core/cdm/decrypt_labs_remote_cdm.py index 0aa98f2..c09f275 100644 --- a/unshackle/core/cdm/decrypt_labs_remote_cdm.py +++ b/unshackle/core/cdm/decrypt_labs_remote_cdm.py @@ -10,8 +10,8 @@ from pywidevine.cdm import Cdm as WidevineCdm from pywidevine.device import DeviceTypes from requests import Session -from unshackle.core.vaults import Vaults from unshackle.core import __version__ +from unshackle.core.vaults import Vaults class MockCertificateChain: diff --git a/unshackle/vaults/SQLite.py b/unshackle/vaults/SQLite.py index 58d8a93..ac89fec 100644 --- a/unshackle/vaults/SQLite.py +++ b/unshackle/vaults/SQLite.py @@ -36,12 +36,12 @@ class SQLite(Vault): for service_name in service_variants: if not self.has_table(service_name): continue - + cursor.execute(f"SELECT `id`, `key_` FROM `{service_name}` WHERE `kid`=? AND `key_`!=?", (kid, "0" * 32)) cek = cursor.fetchone() if cek: return cek[1] - + return None finally: cursor.close()