Skip to content

Commit

Permalink
lint: Ruff format fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricioabreu committed May 14, 2024
1 parent c740cc0 commit 0db7323
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion m3u8/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand Down
3 changes: 1 addition & 2 deletions tests/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"'


0 comments on commit 0db7323

Please sign in to comment.