From 4b0814a2ecd8ca9b49cf3f110918a74d41c9dd6e Mon Sep 17 00:00:00 2001 From: wukko Date: Tue, 14 May 2024 15:37:41 +0600 Subject: [PATCH] config: clean up --- src/modules/config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/config.js b/src/modules/config.js index 1722b795..c66521e1 100644 --- a/src/modules/config.js +++ b/src/modules/config.js @@ -34,7 +34,7 @@ const corsWildcard: process.env.CORS_WILDCARD !== '0', corsURL: process.env.CORS_URL, cookiePath: process.env.COOKIE_PATH, - processingPriority: process.platform !== "win32" + processingPriority: process.platform !== 'win32' && process.env.PROCESSING_PRIORITY && parseInt(process.env.PROCESSING_PRIORITY), tiktokDeviceInfo: process.env.TIKTOK_DEVICE_INFO && JSON.parse(process.env.TIKTOK_DEVICE_INFO), @@ -49,7 +49,7 @@ export const streamLifespan = config.streamLifespan, maxVideoDuration = config.maxVideoDuration, genericUserAgent = config.genericUserAgent, - repo = packageJson["bugs"]["url"].replace('/issues', ''), + repo = packageJson.bugs.url.replace('/issues', ''), authorInfo = config.authorInfo, donations = config.donations, ffmpegArgs = config.ffmpegArgs,