url-encode filename (problem with square brackets)

This commit is contained in:
gutmet 2020-11-13 13:32:35 +01:00
parent 59e5f1f174
commit 084106bbd5

View File

@ -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