diff --git a/download-yt-feeds b/download-yt-feeds index 54149ad..26d5204 100755 --- a/download-yt-feeds +++ b/download-yt-feeds @@ -78,6 +78,11 @@ function main() [[ "${file}" =~ "\.vtt$" ]] && continue # Skip subtitle files. # https://stackoverflow.com/a/8811800/5965450 if [[ "${files_before#*${file}}" == "${files_before}" ]]; then + if [[ "${file}" =~ "#" ]]; then + local file_new="${file:gs/#/_}" + mv "${file}" "${file_new}" + file="${file_new}" + fi echo "${file/${download_dir}\//}" \ >> "${download_dir}/New_${time}.m3u" fi