Vdl : Update proxy address.

This commit is contained in:
Dmitry Voronin 2024-08-20 13:15:36 +03:00
parent 0838a84a86
commit 6e2c86552e
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -1,5 +1,7 @@
{ ... }: { { ... }: {
text = '' text = ''
export VDL_PROXY="--proxy 'socks5://10.0.0.1:1080/' "
# Download video from URL. When no `[LINK]` specified, it tries to update previously downloaded link. # Download video from URL. When no `[LINK]` specified, it tries to update previously downloaded link.
# Usage: vdl [LINK] # Usage: vdl [LINK]
function vdl() { function vdl() {
@ -25,7 +27,7 @@
[[ -f "Src.txt" ]] || echo "''${target}" > Src.txt [[ -f "Src.txt" ]] || echo "''${target}" > Src.txt
# Download [LINK] content. # Download [LINK] content.
yt-dlp --proxy 'socks5://zapret.containers:1080/' -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 yt-dlp ''${VDL_PROXY} -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. # Temporary fix for vk downloads.