From d3a5dc7e800f6df321cad2be7167064655b7fa62 Mon Sep 17 00:00:00 2001 From: Thomas Erlang Date: Sun, 17 Dec 2023 00:08:40 +0100 Subject: [PATCH] Client width is not being used --- seplis_play_server/transcoders/video.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/seplis_play_server/transcoders/video.py b/seplis_play_server/transcoders/video.py index 35b13a1..c9ab7ad 100644 --- a/seplis_play_server/transcoders/video.py +++ b/seplis_play_server/transcoders/video.py @@ -25,7 +25,6 @@ class Transcode_settings: max_audio_channels: Optional[int] | constr(max_length=0) = None max_width: Optional[int] | constr(max_length=0) = None max_video_bitrate: Optional[int] | constr(max_length=0) = None - client_width: Optional[int] | constr(max_length=0) = None supported_video_containers: Annotated[list[constr(min_length=1)], Query()] = Query(default=['mp4']) client_can_switch_audio_track: bool = False @@ -257,7 +256,7 @@ def set_video(self): if codec == 'copy': return - width = self.settings.max_width or self.settings.client_width or self.video_stream['width'] + width = self.settings.max_width or self.video_stream['width'] if width > self.video_stream['width']: width = self.video_stream['width']