forked from kenzuya/unshackle
feat(drm): warn when the licence returns the content key that the decode check flagged
This commit is contained in:
@@ -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})])
|
||||
|
||||
Reference in New Issue
Block a user