Skip to content

Commit

Permalink
Fix for empty supported_hdr_formats
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaserlang committed May 19, 2024
1 parent ce42392 commit c36f4f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions seplis_play_server/transcoders/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Transcode_settings:
supported_audio_codecs: Annotated[
list[Annotated[str, Query(min_length=1)]], Query()
]
format: Literal['pipe', 'hls', 'hls.js', 'dash']
format: Literal['pipe', 'hls', 'hls.js']
transcode_video_codec: Literal['h264', 'hevc', 'vp9']
transcode_audio_codec: Literal['aac', 'opus', 'dts', 'flac', 'mp3']

Expand All @@ -39,7 +39,7 @@ class Transcode_settings:
Query(default_factory=lambda: ['mp4']),
]
supported_hdr_formats: Annotated[
list[Literal['hdr10', 'hlg', 'dovi']], Query(default_factory=lambda: [])
list[Literal['hdr10', 'hlg', 'dovi', '']], Query(default_factory=lambda: [])
]
supported_video_color_bit_depth: (
Annotated[int, Query(ge=8)] | Annotated[str, Query(max_length=0)]
Expand Down

0 comments on commit c36f4f8

Please sign in to comment.