From 6c7bf16eece40414d8f31b2b06206c4d514794ed Mon Sep 17 00:00:00 2001 From: home Date: Fri, 10 Nov 2023 03:32:18 +0300 Subject: [PATCH] vdl : don't override existing src.txt. --- .linux/bash/module/vdl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.linux/bash/module/vdl.sh b/.linux/bash/module/vdl.sh index edeb6d4..9a17499 100644 --- a/.linux/bash/module/vdl.sh +++ b/.linux/bash/module/vdl.sh @@ -21,7 +21,7 @@ vdl() fi # Save [LINK] for later use. - echo "${target}" > src.txt + [[ -f "src.txt" ]] || echo "${target}" > src.txt # Download [LINK] content. yt-dlp -f 'bestvideo[height<=?1081]+bestaudio/best' --download-archive index.txt --embed-thumbnail --embed-subs --write-auto-subs --embed-metadata --merge-output-format mkv -cio '%(playlist_index)000006d_%(id)s.%(ext)s' "${target}"