aboutsummaryrefslogtreecommitdiffstats
path: root/settings.py
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2021-08-29 13:00:39 -0700
committerJesús <heckyel@hyperbola.info>2021-08-29 23:17:32 -0500
commit2ae81f2a78fcf71ac14099cf6642cc6181299d27 (patch)
tree7e88b97b7299862752dfe8dd9f04a5a0f64f0e67 /settings.py
parent99cb1c48eac0a8553945e308d22fc7fa7da83825 (diff)
downloadyt-local-2ae81f2a78fcf71ac14099cf6642cc6181299d27.tar.lz
yt-local-2ae81f2a78fcf71ac14099cf6642cc6181299d27.tar.xz
yt-local-2ae81f2a78fcf71ac14099cf6642cc6181299d27.zip
Add setting to prefer uni or pair sources and fix selection b/w them
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 <heckyel@hyperbola.info>
Diffstat (limited to 'settings.py')
-rw-r--r--settings.py9
1 files changed, 9 insertions, 0 deletions
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,