mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2025-10-23 15:11:08 +00:00
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:
@@ -10,8 +10,8 @@ from pywidevine.cdm import Cdm as WidevineCdm
|
|||||||
from pywidevine.device import DeviceTypes
|
from pywidevine.device import DeviceTypes
|
||||||
from requests import Session
|
from requests import Session
|
||||||
|
|
||||||
from unshackle.core.vaults import Vaults
|
|
||||||
from unshackle.core import __version__
|
from unshackle.core import __version__
|
||||||
|
from unshackle.core.vaults import Vaults
|
||||||
|
|
||||||
|
|
||||||
class MockCertificateChain:
|
class MockCertificateChain:
|
||||||
|
|||||||
@@ -36,12 +36,12 @@ class SQLite(Vault):
|
|||||||
for service_name in service_variants:
|
for service_name in service_variants:
|
||||||
if not self.has_table(service_name):
|
if not self.has_table(service_name):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
cursor.execute(f"SELECT `id`, `key_` FROM `{service_name}` WHERE `kid`=? AND `key_`!=?", (kid, "0" * 32))
|
cursor.execute(f"SELECT `id`, `key_` FROM `{service_name}` WHERE `kid`=? AND `key_`!=?", (kid, "0" * 32))
|
||||||
cek = cursor.fetchone()
|
cek = cursor.fetchone()
|
||||||
if cek:
|
if cek:
|
||||||
return cek[1]
|
return cek[1]
|
||||||
|
|
||||||
return None
|
return None
|
||||||
finally:
|
finally:
|
||||||
cursor.close()
|
cursor.close()
|
||||||
|
|||||||
Reference in New Issue
Block a user