mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-03 06:25:10 +00:00
feat(hls): carry a held media playlist over --remote and export, inflate gzip segments, add own_stream_only mux opt-in
This commit is contained in:
@@ -169,7 +169,9 @@ def test_first_fragment_skips_the_header_boxes_of_a_one_file_track(monkeypatch:
|
||||
def test_first_segment_of_an_hls_playlist_keeps_its_byte_offset() -> None:
|
||||
playlist = '#EXTM3U\n#EXT-X-MAP:URI="init.mp4"\n#EXTINF:6.0,\n#EXT-X-BYTERANGE:5000@1200\nmedia.mp4\n'
|
||||
session = SimpleNamespace(get=lambda url, timeout: SimpleNamespace(status_code=200, text=playlist))
|
||||
track = SimpleNamespace(url="https://cdn/v/index.m3u8", data={}, descriptor=Video.Descriptor.HLS, from_file=None)
|
||||
track = SimpleNamespace(
|
||||
url="https://cdn/v/index.m3u8", data={}, descriptor=Video.Descriptor.HLS, held_playlist=lambda: None
|
||||
)
|
||||
assert hdr10plus.first_segment(track, session) == ("https://cdn/v/media.mp4", 1200) # type: ignore[arg-type]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user