summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-01-31 21:48:49 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-01-31 21:48:49 +0900
commit29b5471a812fee61ce7181d470474584543882ec (patch)
tree500567ed4824e1446ed9984d85d1f0028baabf83
parent5ad7a19907f75954a0999bdc962ab40e2d0196c1 (diff)
modified bin/qndl
-rwxr-xr-xar/.local/bin/qndl4
1 files changed, 2 insertions, 2 deletions
diff --git a/ar/.local/bin/qndl b/ar/.local/bin/qndl
index 23aa466..1c5be55 100755
--- a/ar/.local/bin/qndl
+++ b/ar/.local/bin/qndl
@@ -79,8 +79,8 @@ case $URL in
YTDL_CMD_BASE="$YTDL_CMD_BASE --yes-playlist" &&
echo 🪏 >/tmp/qplaylist
[ "$DOWNLOAD_TYPE" = "video" ] &&
- CHANNEL=$(yt-dlp --print "%(channel)s" "$URL" | head -n 1 | sed 's/[\/:*?"<>| ]/-/g' | tr '[:upper:]' '[:lower:]') &&
- PLAYLIST=$(yt-dlp --print "%(playlist_title)s" "$URL" | head -n 1 | sed 's/[\/:*?"<>| ]/-/g' | tr '[:upper:]' '[:lower:]') &&
+ CHANNEL=$(yt-dlp --print "%(channel)s" "$URL" | head -n 1 | sed 's/, /,/g;s/[\/:*?"<>| ]/-/g' | tr '[:upper:]' '[:lower:]') &&
+ PLAYLIST=$(yt-dlp --print "%(playlist_title)s" "$URL" | head -n 1 | sed 's/, /,/g;s/[\/:*?"<>| ]/-/g' | tr '[:upper:]' '[:lower:]') &&
SUBDIR="${CHANNEL}/${PLAYLIST}" &&
mkdir -p "${OUTPUT_DIR}/${SUBDIR}" &&
YTDL_OUTPUT_FORMAT="${OUTPUT_DIR}/${SUBDIR}/%(playlist_index)02d_%(title)s [%(id)s].%(ext)s"