feat(drm): warn when the licence returns the content key that the decode check flagged

This commit is contained in:
imSp4rky
2026-12-01 18:32:37 -07:00
parent 41c2b3d86a
commit 3963e80ec3
3 changed files with 57 additions and 11 deletions
+2
View File
@@ -199,6 +199,8 @@ class ContentKeyResolver:
source = self.vaults.source_of(kid, new)
if source is None:
if new == key:
if self.vaults.first(("licence", kid, key), self.vaults.warned):
self.log.warning(f"Licence returned the same content key for KID {kid.hex}, keeping it")
self.vaults.unflag_bad_key(kid, key)
if new == key or not self.vaults.held_locally(kid, new):
self._flush_vault_writes([partial(self._cache_keys_to_vaults, {kid: new})])