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
This commit is contained in:
Andy
2025-09-10 00:53:52 +00:00
parent 04b540b363
commit d18a5de0d0
2 changed files with 3 additions and 3 deletions

View File

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

View File

@@ -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()