diff --git a/README.md b/README.md index 2b88d75..d0202f0 100644 --- a/README.md +++ b/README.md @@ -231,6 +231,7 @@ Freedom Loader can be configured either through the settings panel in the UI or "addThumbnail": true, "addMetadata": true, "verboseLogs": false, + "autoUpdateYtDlp": true, "autoDownloadPlaylist": true, "keepPlaylistOrder": false, "createPlaylistFolders": true, @@ -255,6 +256,7 @@ Freedom Loader can be configured either through the settings panel in the UI or | `addThumbnail` | boolean | `true` | Embed thumbnail in downloaded audio files | | `addMetadata` | boolean | `true` | Add metadata tags to downloaded files | | `verboseLogs` | boolean | `false` | Enable detailed logging for debugging | +| `autoUpdateYtDlp` | boolean | `true` | Automatically update yt-dlp when the app starts | | `autoDownloadPlaylist` | boolean | `true` | Automatically download entire playlists | | `keepPlaylistOrder` | boolean | `false` | Add index before title, usefull for album | | `createPlaylistFolders` | boolean | `false` | Automatically create a folder for a playlist | diff --git a/config/config.default.json b/config/config.default.json index b8306fa..d968e04 100644 --- a/config/config.default.json +++ b/config/config.default.json @@ -5,6 +5,7 @@ "addThumbnail": true, "addMetadata": true, "verboseLogs": false, + "autoUpdateYtDlp": true, "autoDownloadPlaylist": true, "keepPlaylistOrder": false, "createPlaylistFolders": false, diff --git a/main.js b/main.js index 474a03e..a75e70b 100644 --- a/main.js +++ b/main.js @@ -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 diff --git a/public/index.html b/public/index.html index 7f7688e..53e7da0 100644 --- a/public/index.html +++ b/public/index.html @@ -217,6 +217,14 @@ +
+ +
+ Automatically Update yt-dlp + Check for and install yt-dlp updates when the application starts. +
+
+