From 084106bbd559d1f073729dd23d9dca83a9e77f3a Mon Sep 17 00:00:00 2001 From: gutmet Date: Fri, 13 Nov 2020 13:32:35 +0100 Subject: [PATCH] url-encode filename (problem with square brackets) --- youtube-par-cmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube-par-cmd b/youtube-par-cmd index bfb34bd..992aedc 100755 --- a/youtube-par-cmd +++ b/youtube-par-cmd @@ -30,5 +30,5 @@ m3uFile="Playlist - $playlistTitle"".m3u8" echo "#EXTM3U" > "$m3uFile" echo "#PLAYLIST:$playlistInfo" >> "$m3uFile" echo "$urls" | while read url; do - find . -name "*$url*" -prune >> "$m3uFile" + find . -name "*$url*" -prune -exec basename '{}' ';'| tr -d "\n" | jq -sRr @uri >> "$m3uFile" done