Vdl: Use eval for better arg processing.

This commit is contained in:
Dmitry Voronin 2025-02-03 23:41:21 +03:00
parent f6440fdf36
commit 073e59a5d1
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -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.