config: clean up

This commit is contained in:
wukko 2024-05-14 15:37:41 +06:00 committed by dumbmoron
parent ce6bafadf9
commit 4b0814a2ec
No known key found for this signature in database

View file

@ -34,7 +34,7 @@ const
corsWildcard: process.env.CORS_WILDCARD !== '0', corsWildcard: process.env.CORS_WILDCARD !== '0',
corsURL: process.env.CORS_URL, corsURL: process.env.CORS_URL,
cookiePath: process.env.COOKIE_PATH, cookiePath: process.env.COOKIE_PATH,
processingPriority: process.platform !== "win32" processingPriority: process.platform !== 'win32'
&& process.env.PROCESSING_PRIORITY && process.env.PROCESSING_PRIORITY
&& parseInt(process.env.PROCESSING_PRIORITY), && parseInt(process.env.PROCESSING_PRIORITY),
tiktokDeviceInfo: process.env.TIKTOK_DEVICE_INFO && JSON.parse(process.env.TIKTOK_DEVICE_INFO), tiktokDeviceInfo: process.env.TIKTOK_DEVICE_INFO && JSON.parse(process.env.TIKTOK_DEVICE_INFO),
@ -49,7 +49,7 @@ export const
streamLifespan = config.streamLifespan, streamLifespan = config.streamLifespan,
maxVideoDuration = config.maxVideoDuration, maxVideoDuration = config.maxVideoDuration,
genericUserAgent = config.genericUserAgent, genericUserAgent = config.genericUserAgent,
repo = packageJson["bugs"]["url"].replace('/issues', ''), repo = packageJson.bugs.url.replace('/issues', ''),
authorInfo = config.authorInfo, authorInfo = config.authorInfo,
donations = config.donations, donations = config.donations,
ffmpegArgs = config.ffmpegArgs, ffmpegArgs = config.ffmpegArgs,