Vdl : Update to the new name format.

This commit is contained in:
Dmitry Voronin 2023-12-30 22:21:42 +03:00
parent 984b7d3f42
commit 479a7c85f8

View file

@ -9,8 +9,8 @@ function vdl() {
local target="${@}" # What to download/update.
# If no [LINK] provided, try to read from `src.txt`.
[[ "${target}" = "" ]] && target="$(cat src.txt)"
# If no [LINK] provided, try to read from `Src.txt`.
[[ "${target}" = "" ]] && target="$(cat Src.txt)"
# If could not get [LINK] eventually, show an error and exit.
if [[ "${target}" = "" ]]; then
@ -20,10 +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 -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} # || _vdl_retry
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} # || _vdl_retry
}
# Temporary fix for vk downloads.