forked from kenzuya/unshackle
fix(manifests): skip a DASH Representation or HLS variant with an unknown codec
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user