use relative paths in playlist.
This commit is contained in:
parent
1ca20f6884
commit
2dc541250e
@ -70,7 +70,8 @@ function main()
|
||||
files_after="$(find "${download_dir}" -type f)"
|
||||
while read file; do
|
||||
if [[ ! "${files_before}" =~ "${file}" ]]; then
|
||||
echo "${file}" >> "${download_dir}/New_$(date +'%F_%R').m3u"
|
||||
echo "${file/${download_dir}\//}" \
|
||||
>> "${download_dir}/New_$(date +'%F_%R').m3u"
|
||||
fi
|
||||
done <<<"${files_after}"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user