perhaps fix the hevc not being enabled

This commit is contained in:
matty 2024-04-14 14:48:34 -04:00
parent 17eafa8872
commit 27ce7b5659

2
dist/main.js vendored
View File

@ -132,7 +132,7 @@ async function loadSettings(settingsManager) {
pluginSettings.vodQuality = parseInt(await settingsManager.getSetting('vod-quality')) || DEFAULT_VOD_QUALITY;
pluginSettings.liveQuality = parseInt(await settingsManager.getSetting('live-quality')) || DEFAULT_LIVE_QUALITY;
pluginSettings.hevcProfile = parseInt(await settingsManager.getSetting('hevc-profile')) || DEFAULT_HEVC_PROFILE;
pluginSettings.hevcEnabled = parseInt(await settingsManager.getSetting('hevc-encode')) || DEFAULT_HEVC_ENABLED;
pluginSettings.hevcEnabled = await settingsManager.getSetting('hevc-encode') == "true";
for (const [resolution, bitrate] of DEFAULT_BITRATES) {
const key = `base-bitrate-${resolution}`;
const storedValue = await settingsManager.getSetting(key);