From 6df3939207790b1901f283f6f996f4905e2a666e Mon Sep 17 00:00:00 2001 From: aandrew-me Date: Sun, 9 Feb 2025 12:05:44 +0300 Subject: [PATCH] New playlist changes --- html/playlist_new.html | 12 +++++++++++- src/playlist_new.js | 4 +++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/html/playlist_new.html b/html/playlist_new.html index 34f4025..dfe6806 100644 --- a/html/playlist_new.html +++ b/html/playlist_new.html @@ -34,6 +34,17 @@ Homepage Preferences About + Theme: + @@ -58,7 +69,6 @@
-
diff --git a/src/playlist_new.js b/src/playlist_new.js index 16a436e..75e5b03 100644 --- a/src/playlist_new.js +++ b/src/playlist_new.js @@ -60,7 +60,7 @@ function pasteLink() { getId("errorDetails").style.display = "none"; getId("errorDetails").textContent = ""; exec( - `yt-dlp --yes-playlist --no-warnings -J --flat-playlist "${clipboardText}"`, + `${ytDlp} --yes-playlist --no-warnings -J --flat-playlist "${clipboardText}"`, (error, stdout, stderr) => { if (error) { getId("loadingWrapper").style.display = "none"; @@ -81,6 +81,7 @@ function pasteLink() { // If correct playlist url is used if (parsed.entries) { parsed.entries.forEach((entry) => { + console.log(entry) const randId = Math.random() .toFixed(10) .toString() @@ -97,6 +98,7 @@ function pasteLink() {
${entry.title}
${formatTime(entry.duration)}
+ `;