fix(remote): stop warning about missing keys for tracks that carry no DRM

The server names the clear tracks in the licence response and the client skips them instead of warning for every requested track without keys.
This commit is contained in:
imSp4rky
2026-09-19 22:05:30 -06:00
parent 9c9e059e2d
commit cd6a38aec8
5 changed files with 32 additions and 3 deletions
+2 -1
View File
@@ -1178,6 +1178,7 @@ class RemoteService:
)
self.drain_server_logs()
keys_by_track = resp.get("keys", {})
clear_tracks = set(resp.get("clear_tracks", []))
vault_kids = set(resp.get("vault_keys", []))
for track_keys in keys_by_track.values():
self.note_vault_keys(track_keys, vault_kids)
@@ -1189,7 +1190,7 @@ class RemoteService:
for track in title.tracks:
track_keys = keys_by_track.get(str(track.id), {})
if not track_keys:
if str(track.id) in track_ids:
if str(track.id) in track_ids and str(track.id) not in clear_tracks:
self.log.warning(f"Server CDM returned no content keys for track {track.id}")
continue