Fix matching for playlist.
This commit is contained in:
parent
e619cae944
commit
c66f4051f6
@ -71,7 +71,8 @@ function main()
|
||||
done
|
||||
files_after="$(find "${download_dir}" -type f)"
|
||||
while read file; do
|
||||
if [[ ! "${files_before}" =~ "${file}" ]]; then
|
||||
# https://stackoverflow.com/a/8811800/5965450
|
||||
if [[ "${files_before#*${file}}" == "${files_before}" ]]; then
|
||||
echo "${file/${download_dir}\//}" \
|
||||
>> "${download_dir}/New_$(date +'%F_%R').m3u"
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user