From 6e2c86552e04a681fb4e568d78aefa9e31f152a2 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Tue, 20 Aug 2024 13:15:36 +0300 Subject: [PATCH] Vdl : Update proxy address. --- home/program/bash/module/Vdl.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/home/program/bash/module/Vdl.nix b/home/program/bash/module/Vdl.nix index 2cc76e96..3690069e 100644 --- a/home/program/bash/module/Vdl.nix +++ b/home/program/bash/module/Vdl.nix @@ -1,5 +1,7 @@ { ... }: { 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. # Usage: vdl [LINK] function vdl() { @@ -25,7 +27,7 @@ [[ -f "Src.txt" ]] || echo "''${target}" > Src.txt # 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.