diff options
Diffstat (limited to 'ar')
| -rwxr-xr-x | ar/.local/bin/qndl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ar/.local/bin/qndl b/ar/.local/bin/qndl index c9c1be2..c020766 100755 --- a/ar/.local/bin/qndl +++ b/ar/.local/bin/qndl @@ -79,7 +79,7 @@ case $URL in YTDL_CMD_BASE="$YTDL_CMD_BASE --yes-playlist" && echo >/tmp/qplaylist [ "$DOWNLOAD_TYPE" = "video" ] && - SUBDIR=$(yt-dlp --dump-single-json "$URL" --no-playlist | jq -r '.channel' | sed 's/[\/:*?"<>|]/_/g;s/[[:space:]]/-/g') && + SUBDIR=$(yt-dlp --dump-single-json "$URL" --no-playlist | jq -r '.channel' | sed 's/[\/:*?"<>| ]/-/g' | tr '[:upper:]' '[:lower:]') && mkdir -p "${OUTPUT_DIR}/${SUBDIR}" && YTDL_OUTPUT_FORMAT="${OUTPUT_DIR}/${SUBDIR}/%(playlist_index)02d_%(title)s [%(id)s].%(ext)s" ;; |
