diff --git a/package.json b/package.json index 9575473..0159967 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "yt-dlp-wrap-plus": "^2.3.18" }, "name": "ytdownloader", - "version": "3.17.0", + "version": "3.17.1", "main": "main.js", "scripts": { "start": "electron .", diff --git a/src/renderer.js b/src/renderer.js index 4756ae0..255ea0a 100644 --- a/src/renderer.js +++ b/src/renderer.js @@ -60,6 +60,13 @@ let cookieArg = ""; let browser = ""; let maxActiveDownloads = 5; let showMoreFormats = false; +let configArg = ""; +let configTxt = ""; + +if (localStorage.getItem("configPath")) { + configArg = "--config-location"; + configTxt = `"${localStorage.getItem("configPath")}"`; +} function checkMaxDownloads() { if (localStorage.getItem("maxActiveDownloads")) { @@ -310,6 +317,8 @@ async function getInfo(url) { "--no-warnings", cookieArg, browser, + configArg, + configTxt, `"${url}"`, ], { @@ -879,8 +888,7 @@ function download( ) { // Config file const newTitle = title1 || title; - let configArg = ""; - let configTxt = ""; + if (localStorage.getItem("configPath")) { configArg = "--config-location"; configTxt = `"${localStorage.getItem("configPath")}"`;