forked from kenzuya/unshackle
fix(dl): prevent vault loading when --cdm-only flag is set
The --cdm-only flag was only preventing vault queries during DRM operations but vaults were still being loaded
This commit is contained in:
@@ -553,6 +553,19 @@ class dl:
|
||||
f"Applied service-specific '{config_key}' overrides for {self.service}: {override_value}"
|
||||
)
|
||||
|
||||
cdm_only = ctx.params.get("cdm_only")
|
||||
|
||||
if cdm_only:
|
||||
self.vaults = Vaults(self.service)
|
||||
self.log.info("CDM-only mode: Skipping vault loading")
|
||||
if self.debug_logger:
|
||||
self.debug_logger.log(
|
||||
level="INFO",
|
||||
operation="vault_loading_skipped",
|
||||
service=self.service,
|
||||
context={"reason": "cdm_only flag set"},
|
||||
)
|
||||
else:
|
||||
with console.status("Loading Key Vaults...", spinner="dots"):
|
||||
self.vaults = Vaults(self.service)
|
||||
total_vaults = len(config.key_vaults)
|
||||
|
||||
Reference in New Issue
Block a user