From d23cb03764179ad416d8c725d17a19fcccd5b19d Mon Sep 17 00:00:00 2001 From: "CATERPILLAR\\Braxen" Date: Mon, 15 Jan 2024 09:37:24 +0100 Subject: [PATCH 1/2] default value of hls queue threshold should not be 0 related to #486 --- common/ServerConfig.ts | 4 ++-- server/src/Core/Providers/Base/BaseAutomator.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/ServerConfig.ts b/common/ServerConfig.ts index f86be9f6..0c69d343 100644 --- a/common/ServerConfig.ts +++ b/common/ServerConfig.ts @@ -299,8 +299,8 @@ export const settingsFields: Record = { group: "Capture", text: "HLS segment queue threshold", type: "number", - default: 0, - help: "If set to 0, it will be ignored.", + default: -1, + help: "If set to -1, it will be ignored. 0 disables the check.", }, "capture.use_cache": { diff --git a/server/src/Core/Providers/Base/BaseAutomator.ts b/server/src/Core/Providers/Base/BaseAutomator.ts index 3119fc06..63f7acad 100644 --- a/server/src/Core/Providers/Base/BaseAutomator.ts +++ b/server/src/Core/Providers/Base/BaseAutomator.ts @@ -1619,8 +1619,8 @@ export class BaseAutomator { ); // streamlink 6.0.0 timeout - if (Config.getInstance().cfg("capture.hls_segment_queue_threshold", 0) != 0) { - cmd.push("--hls-segment-queue-threshold", Config.getInstance().cfg("capture.hls_segment_queue_threshold", 0).toString()); + if (Config.getInstance().cfg("capture.hls_segment_queue_threshold", -1) != -1) { + cmd.push("--hls-segment-queue-threshold", Config.getInstance().cfg("capture.hls_segment_queue_threshold", -1).toString()); } // The size of the thread pool used to download HLS segments. From 791c218af9328e6255f809c72cc27be3839bc274 Mon Sep 17 00:00:00 2001 From: "CATERPILLAR\\Braxen" Date: Mon, 15 Jan 2024 09:39:40 +0100 Subject: [PATCH 2/2] bump server version --- server/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/package.json b/server/package.json index c4def1e4..ea7eccf1 100644 --- a/server/package.json +++ b/server/package.json @@ -1,6 +1,6 @@ { "name": "livestreamdvr-server", - "version": "1.7.2", + "version": "1.7.2.1", "description": "", "main": "index.ts", "scripts": {