fix(manifests): skip a DASH Representation or HLS variant with an unknown codec

This commit is contained in:
imSp4rky
2026-11-28 14:46:06 -07:00
parent 0bd5c4de4f
commit fd1b9254ee
5 changed files with 130 additions and 21 deletions
+5 -1
View File
@@ -57,9 +57,13 @@ def test_index_lists_every_known_failure() -> None:
@pytest.mark.parametrize("entry", cases(INDEX))
def test_manifest_parses_to_tracks(entry: dict[str, Any]) -> None:
def test_manifest_parses_to_tracks(entry: dict[str, Any], caplog: pytest.LogCaptureFixture) -> None:
tracks = parse(entry)
assert not [
r for r in caplog.records if r.getMessage().startswith(("Skipped DASH Representation", "Skipped HLS variant"))
]
assert tracks.videos or tracks.audio or tracks.subtitles
for track in tracks:
# HLS CODECS is only a SHOULD (RFC 8216 4.3.4.2), so an HLS track can honestly have none