Add setting to enable YouTube adaptive streaming

For now hidden because other related YouTube settings like min/max resolution, codecs etc. are not done yet
This commit is contained in:
Rafał Dzięgiel
2021-04-12 18:45:36 +02:00
parent 901fc8d760
commit 774687710f
2 changed files with 8 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ const Misc = imports.src.misc;
const YTDL = imports.src.assets['node-ytdl-core'];
const debug = Debug.ytDebug;
const { settings } = Misc;
const InitAsyncState = {
NONE: 0,
@@ -358,7 +359,7 @@ var YouTubeClient = GObject.registerClass({
return null;
/* TODO: Options in prefs to set preferred video formats and adaptive streaming */
const isAdaptiveEnabled = false;
const isAdaptiveEnabled = settings.get_boolean('yt-adaptive-enabled');
const allowedFormats = {
video: [
133,