Vdl: Use eval for better arg processing.
This commit is contained in:
parent
f6440fdf36
commit
073e59a5d1
|
@ -20,16 +20,10 @@ function vdl() {
|
|||
fi
|
||||
|
||||
# Save [LINK] for later use.
|
||||
[[ -f "Src.txt" ]] || echo "${target}" >Src.txt
|
||||
[[ -f "Src.txt" ]] || echo "${target}" > Src.txt
|
||||
|
||||
# Download [LINK] content.
|
||||
yt-dlp -4 -S 'res:1080,codec:av1,codec:vp9,codec:h264' --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} # || _vdl_retry
|
||||
}
|
||||
|
||||
# Temporary fix for vk downloads.
|
||||
# Usage: vdl_vk <LINK>
|
||||
function vdl_vk() {
|
||||
vdl --format mp4 "${@}"
|
||||
eval "yt-dlp -4 -S 'res:1080,codec:av1,codec:vp9,codec:h264' --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}"
|
||||
}
|
||||
|
||||
# Download all videos from file with links.
|
||||
|
|
Loading…
Reference in a new issue