feat: add auto-update option for yt-dlp in settings

This commit is contained in:
MasterAcnolo
2026-10-28 17:46:43 +01:00
parent dc898e1235
commit 1b83272aaf
4 changed files with 16 additions and 0 deletions

View File

@@ -145,7 +145,12 @@ app.whenReady().then(async () => {
if (!devMode && !checkNativeDependencies()) return;
const { userYtDlp } = require("./server/helpers/path.helpers");
if (configFeatures.autoUpdateYtDlp !== false) {
updateYtDlp(userYtDlp);
} else {
logger.info("yt-dlp automatic updates skipped.");
}
try {
setSplashProgress(0); // Checking dependencies