mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-03 22:45:09 +00:00
refactor(manifests): build the HLS key plan once and read it in every HLS licence pass
This commit is contained in:
@@ -499,7 +499,11 @@ def test_hls_media_probes_are_not_recorded_but_the_playlist_is(server, debug_log
|
||||
HLS.probe_ts_info(f"{server.url}/v.m3u8", session)
|
||||
playlist = m3u8.loads(server.docs["/v.m3u8"], uri=f"{server.url}/v.m3u8")
|
||||
HLS.fetch_init_section(session, playlist.segments[0].init_section, 0)
|
||||
HLS.get_track_kid_from_init(playlist, SimpleNamespace(get_key_id=lambda _: None), session) # type: ignore[arg-type]
|
||||
HLS.get_track_kid_from_init(
|
||||
SimpleNamespace(get_key_id=lambda _: None), # type: ignore[arg-type]
|
||||
HLS.init_reader(playlist, session),
|
||||
playlist.segments[0].init_section,
|
||||
)
|
||||
|
||||
assert (server.hits.count("/seg.ts"), server.hits.count("/init.mp4")) == (1, 2)
|
||||
assert paths(debug_log) == ["/v.m3u8"]
|
||||
|
||||
Reference in New Issue
Block a user