vdl : add fix for vk download.

This commit is contained in:
Dmitry Voronin 2023-11-24 02:29:38 +03:00
parent aa50193fb7
commit 38731379a9

View file

@ -24,9 +24,11 @@ vdl()
[[ -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
} }
alias vdl_vk="vdl --format mp4"
# Temporary fix for crashes. # Temporary fix for crashes.
_vdl_retry() { _vdl_retry() {
for file in *.part; do for file in *.part; do