diff --git a/m3u8/model.py b/m3u8/model.py index 49305ffb..465bd69d 100644 --- a/m3u8/model.py +++ b/m3u8/model.py @@ -982,7 +982,7 @@ def __init__(self, uri, stream_info, media, base_uri): hdcp_level=stream_info.get("hdcp_level"), pathway_id=stream_info.get("pathway_id"), stable_variant_id=stream_info.get("stable_variant_id"), - req_video_layout=stream_info.get("req_video_layout") + req_video_layout=stream_info.get("req_video_layout"), ) self.media = [] for media_type in ("audio", "video", "subtitles"): diff --git a/tests/test_parser.py b/tests/test_parser.py index 84f692e4..8fc36df4 100644 --- a/tests/test_parser.py +++ b/tests/test_parser.py @@ -906,8 +906,7 @@ def test_media_with_stable_rendition_id(): == "a8213e27c12a158ea8660e0fe8bdcac6072ca26d984e7e8603652bc61fdceffa" ) + def test_req_video_layout(): data = m3u8.parse(playlists.VARIANT_PLAYLIST_WITH_REQ_VIDEO_LAYOUT) assert data["playlists"][0]["stream_info"]["req_video_layout"] == '"CH-STEREO"' - -