fix(import): give each track only the keys it declares

The whole title pool stays the fallback for a track that declares no KID.
This commit is contained in:
imSp4rky
2026-09-23 14:30:17 -06:00
parent 47f30668ee
commit fc26297ff0
3 changed files with 216 additions and 28 deletions
+2 -1
View File
@@ -1345,7 +1345,8 @@ class RemoteService:
kid_uuids = [UUID(hex=k) for k in kid_hexes]
WIDEVINE_SYSTEM_ID = UUID("edef8ba9-79d6-4ace-a3c8-27dcd51d21ed")
dummy_pssh = WvPSSH.new(system_id=WIDEVINE_SYSTEM_ID, key_ids=kid_uuids)
return Widevine(pssh=dummy_pssh, kid=kid_hexes[0])
# no kid: the stub names several KIDs, and the first is not the track's own
return Widevine(pssh=dummy_pssh)
def get_chapters(self, title: Title_T) -> Chapters:
title_id = str(title.id)