From 01b6bcd02c951c3f0fa796f6a57f213c89f12ab7 Mon Sep 17 00:00:00 2001 From: MasterAcnolo <68693319+MasterAcnolo@users.noreply.github.com> Date: Thu, 15 Jan 2026 10:00:17 +0100 Subject: [PATCH] Feat: Add Newline YT-DLP Args. Add Toggle Switches for verbose, autodownloadplaylist + Fix Thumbail misspell --- config/config.json | 9 ++++++--- server/helpers/buildArgs.js | 7 +++++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/config/config.json b/config/config.json index f969fb6..872dfb0 100644 --- a/config/config.json +++ b/config/config.json @@ -2,12 +2,15 @@ "autoUpdate": true, "discordRPC": true, "customTopBar": true, - "autoDownloadPlaylist": true, - "logSystem": true, "autoCheckInfo": true, - "outputTitleCheck": true, "addThumbnail": true, "addMetadata": true, + "verboseLogs": false, + "autoDownloadPlaylist": true, + + + "logSystem": true, + "outputTitleCheck": true, "downloadSystem": true, "notifySystem": true } \ No newline at end of file diff --git a/server/helpers/buildArgs.js b/server/helpers/buildArgs.js index 16586f3..25c8c25 100644 --- a/server/helpers/buildArgs.js +++ b/server/helpers/buildArgs.js @@ -8,10 +8,12 @@ const { configFeatures } = require("../../config.js"); function buildYtDlpArgs({ url, audioOnly, quality, outputFolder }) { const args = [ + configFeatures.verboseLogs ? "--verbose" : null, // Verbose Logs "--cookies-from-browser", `${getUserBrowser()}`, "--no-continue", "--no-overwrites", - configFeatures.addThumbail ? "--embed-thumbnail" : null, + "--newline", // YT-DLP Logs Format + configFeatures.addThumbnail ? "--embed-thumbnail" : null, configFeatures.addMetadata ? "--add-metadata" : null, "--concurrent-fragments", "8", "--retries", "10", @@ -19,7 +21,8 @@ function buildYtDlpArgs({ url, audioOnly, quality, outputFolder }) { "--ffmpeg-location", ffmpegPath, "--extractor-args","youtube:player_client=default", "--js-runtimes", `deno:${denoPath}`, - "-S", "vcodec:h264" // Will be replaced with a variables when i will add the settings panel (Next Update ?) + "-S", "vcodec:h264", // Will be replaced with a variables when i will add the settings panel (Next Update ?) + configFeatures.autoDownloadPlaylist ? "--yes-playlist" : "--no-playlist" ]; if (audioOnly) args.push("-f", "bestaudio", "--extract-audio", "--audio-format", "mp3");