Vdl : Update to the new name format.
This commit is contained in:
parent
984b7d3f42
commit
479a7c85f8
|
@ -9,8 +9,8 @@ function vdl() {
|
||||||
|
|
||||||
local target="${@}" # What to download/update.
|
local target="${@}" # What to download/update.
|
||||||
|
|
||||||
# If no [LINK] provided, try to read from `src.txt`.
|
# If no [LINK] provided, try to read from `Src.txt`.
|
||||||
[[ "${target}" = "" ]] && target="$(cat src.txt)"
|
[[ "${target}" = "" ]] && target="$(cat Src.txt)"
|
||||||
|
|
||||||
# If could not get [LINK] eventually, show an error and exit.
|
# If could not get [LINK] eventually, show an error and exit.
|
||||||
if [[ "${target}" = "" ]]; then
|
if [[ "${target}" = "" ]]; then
|
||||||
|
@ -20,10 +20,10 @@ function vdl() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Save [LINK] for later use.
|
# Save [LINK] for later use.
|
||||||
[[ -f "src.txt" ]] || echo "${target}" > src.txt
|
[[ -f "Src.txt" ]] || echo "${target}" > Src.txt
|
||||||
|
|
||||||
# Download [LINK] content.
|
# 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.
|
# Temporary fix for vk downloads.
|
||||||
|
|
Reference in a new issue