Don't add subtitle files to playlist.

This commit is contained in:
tastytea 2020-12-24 00:19:10 +01:00
parent 713c3556fd
commit a2ff570736
1 changed files with 1 additions and 0 deletions

View File

@ -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}\//}" \