From 2ae81f2a78fcf71ac14099cf6642cc6181299d27 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Sun, 29 Aug 2021 13:00:39 -0700 Subject: Add setting to prefer uni or pair sources and fix selection b/w them MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pair_quality != uni_quality was the wrong condition to check, since there are cases where the target_resolution is 360, and there are no pair sources at 360, but there are some at other resolutions, which would falsely select the pair sources. Signed-off-by: Jesús --- settings.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'settings.py') diff --git a/settings.py b/settings.py index 9c64c3a..c97e3d8 100644 --- a/settings.py +++ b/settings.py @@ -168,6 +168,15 @@ For security reasons, enabling this is not recommended.''', 'category': 'playback', }), + ('prefer_uni_sources', { + 'label': 'Prefer integrated sources', + 'type': bool, + 'default': True, + 'comment': '', + 'category': 'playback', + 'description': 'If enabled and the default resolution is set to 360p or 720p, uses the unified (integrated) video files which contain audio and video, with buffering managed by the browser. If disabled, always uses the separate audio and video files through custom buffer management in av-merge via MediaSource.', + }), + ('use_video_player', { 'type': int, 'default': 1, -- cgit v1.2.3