vdl : write but dont apply a fix for crashes - use try for now.

This commit is contained in:
Dmitry Voronin 2023-11-20 13:05:41 +03:00
parent fac60dda30
commit edec4202ac

View file

@ -24,7 +24,16 @@ 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}" 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 crashes.
_vdl_retry() {
for file in *.part; do
local number="${file%%_*}"
rm ${number}*
done
vdl
} }
# download all videos from file. # download all videos from file.