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.