From 0db73232e9f09602f37141b9c371723e80cf3a77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Antunes?= Date: Tue, 14 May 2024 10:12:40 -0300 Subject: [PATCH] lint: Ruff format fixes --- m3u8/model.py | 2 +- tests/test_parser.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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"' - -