Don't add subtitle files to playlist.
This commit is contained in:
parent
713c3556fd
commit
a2ff570736
@ -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}\//}" \
|
||||
|
Loading…
x
Reference in New Issue
Block a user