Vdl: Disable proxy env in favor ALL_PROXY.

This commit is contained in:
Dmitry Voronin 2024-10-19 04:14:14 +03:00
parent 94d5059c98
commit 9ee45a53fc
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -1,8 +1,6 @@
{ ... }: { ... }:
{ {
text = '' text = ''
export VDL_PROXY=""
# 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() {
@ -28,7 +26,7 @@
[[ -f "Src.txt" ]] || echo "''${target}" > Src.txt [[ -f "Src.txt" ]] || echo "''${target}" > Src.txt
# Download [LINK] content. # Download [LINK] content.
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 yt-dlp -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.