diff --git a/download-yt-feeds b/download-yt-feeds index 56a5afc..d64e62e 100755 --- a/download-yt-feeds +++ b/download-yt-feeds @@ -70,11 +70,12 @@ function main() # [[ ${?} -eq 0 ]] || die 3 "youtube-dl returned an error." done local files_after="$(find "${download_dir}" -type f)" + local time="$(date +'%F_%R')" while read file; do # https://stackoverflow.com/a/8811800/5965450 if [[ "${files_before#*${file}}" == "${files_before}" ]]; then echo "${file/${download_dir}\//}" \ - >> "${download_dir}/New_$(date +'%F_%R').m3u" + >> "${download_dir}/New_${time}.m3u" fi done <<<"${files_after}"