From 9288558743ee25de773c953b36f1c564643c9bd9 Mon Sep 17 00:00:00 2001 From: aandrew-me Date: Wed, 7 Sep 2022 17:05:36 +0600 Subject: [PATCH] Fixes --- assets/css/index.css | 4 ++++ package.json | 2 +- src/renderer.js | 14 +++++++------- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/assets/css/index.css b/assets/css/index.css index ebbb02a..1363b89 100644 --- a/assets/css/index.css +++ b/assets/css/index.css @@ -154,6 +154,10 @@ body { width: 15px; height: 15px; } +.itemType{ + font-style: italic; + margin-top: 5px; +} #closeHidden { bottom: 5px; diff --git a/package.json b/package.json index b23768d..13252ad 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "yt-dlp-wrap-extended": "^2.3.12" }, "name": "ytdownloader", - "version": "3.2.2", + "version": "3.2.3", "main": "main.js", "scripts": { "start": "electron .", diff --git a/src/renderer.js b/src/renderer.js index f25cc15..5ef8392 100644 --- a/src/renderer.js +++ b/src/renderer.js @@ -576,7 +576,6 @@ function download(type) { downloadProcess = ytdlp.exec( [ - url, rangeOption, rangeCmd, "-f", @@ -586,8 +585,9 @@ function download(type) { "--ffmpeg-location", ffmpeg, subs, - subLangs - // autoSubs + subLangs, + "--no-playlist", + url ], { shell: true, detached: false }, controller.signal @@ -603,7 +603,6 @@ function download(type) { } downloadProcess = ytdlp.exec( [ - url, "-x", "--audio-format", extractFormat, @@ -611,6 +610,7 @@ function download(type) { `${path.join(downloadDir, filename + `.${extractExt}`)}`, "--ffmpeg-location", ffmpeg, + url ], { shell: true, detached: false }, controller.signal @@ -620,7 +620,6 @@ function download(type) { else { downloadProcess = ytdlp.exec( [ - url, rangeOption, rangeCmd, "-f", @@ -630,8 +629,9 @@ function download(type) { "--ffmpeg-location", ffmpeg, subs, - subLangs - // autoSubs + subLangs, + "--no-playlist", + url ], { shell: true, detached: false }, controller.signal