From 124032041f286a52d35335f26d5d3e7330300042 Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 25 Dec 2020 13:48:50 +0100 Subject: [PATCH] Replace # with _ in m3u playlists. Some players treat '#' in a filename as the beginning of a comment. --- download-yt-feeds | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/download-yt-feeds b/download-yt-feeds index 54149ad..9e00033 100755 --- a/download-yt-feeds +++ b/download-yt-feeds @@ -78,7 +78,7 @@ function main() [[ "${file}" =~ "\.vtt$" ]] && continue # Skip subtitle files. # https://stackoverflow.com/a/8811800/5965450 if [[ "${files_before#*${file}}" == "${files_before}" ]]; then - echo "${file/${download_dir}\//}" \ + echo "${file/${download_dir}\//}" | sed 's/#/_/g' \ >> "${download_dir}/New_${time}.m3u" fi done <<<"${files_after}"