vdl : don't override existing src.txt.
This commit is contained in:
parent
f889c9663d
commit
6c7bf16eec
|
@ -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}"
|
||||
|
|
Reference in a new issue