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 files_after="$(find "${download_dir}" -type f)"
|
||||||
local time="$(date +'%F_%R')"
|
local time="$(date +'%F_%R')"
|
||||||
while read file; do
|
while read file; do
|
||||||
|
[[ "${file}" =~ "\.vtt$" ]] && continue # Skip subtitle files.
|
||||||
# https://stackoverflow.com/a/8811800/5965450
|
# https://stackoverflow.com/a/8811800/5965450
|
||||||
if [[ "${files_before#*${file}}" == "${files_before}" ]]; then
|
if [[ "${files_before#*${file}}" == "${files_before}" ]]; then
|
||||||
echo "${file/${download_dir}\//}" \
|
echo "${file/${download_dir}\//}" \
|
||||||
|
|
Loading…
Reference in New Issue
Block a user