vdl : don't override existing src.txt.

This commit is contained in:
Dmitry Voronin 2023-11-10 03:32:18 +03:00
parent f889c9663d
commit 6c7bf16eec

View file

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