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}"