From 2dc541250e62dee2a2340210d51673f95caee8d0 Mon Sep 17 00:00:00 2001 From: tastytea Date: Wed, 16 Dec 2020 18:20:39 +0100 Subject: [PATCH] use relative paths in playlist. --- download-yt-feeds | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/download-yt-feeds b/download-yt-feeds index cff0735..177bff8 100755 --- a/download-yt-feeds +++ b/download-yt-feeds @@ -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}"