From a2ff5707361e38fae1cf211157d94b7c05439b0c Mon Sep 17 00:00:00 2001 From: tastytea Date: Thu, 24 Dec 2020 00:19:10 +0100 Subject: [PATCH] Don't add subtitle files to playlist. --- download-yt-feeds | 1 + 1 file changed, 1 insertion(+) diff --git a/download-yt-feeds b/download-yt-feeds index 68c8478..54149ad 100755 --- a/download-yt-feeds +++ b/download-yt-feeds @@ -75,6 +75,7 @@ function main() local files_after="$(find "${download_dir}" -type f)" local time="$(date +'%F_%R')" while read file; do + [[ "${file}" =~ "\.vtt$" ]] && continue # Skip subtitle files. # https://stackoverflow.com/a/8811800/5965450 if [[ "${files_before#*${file}}" == "${files_before}" ]]; then echo "${file/${download_dir}\//}" \