-
-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Allow passing extra wget arguments in
wget_cmd
.
Example: wget_cmd => "/usr/bin/wget --no-proxy",
- Loading branch information
Showing
1 changed file
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3914,8 +3914,10 @@ sub download_from_url { | |
|
||
# Download with wget | ||
if ($opt{download_with_wget}) { | ||
my @cmd = ($opt{wget_cmd}, '-c', '-t', '10', '--waitretry=3', $url, '-O', "$output_filename.part"); | ||
$yv_obj->proxy_system(@cmd); | ||
my $cmd = join(' ', | ||
$opt{wget_cmd}, '-c', '-t', '10', '--waitretry=3', quotemeta($url), '-O', | ||
quotemeta("$output_filename.part")); | ||
$yv_obj->proxy_system($cmd); | ||
return if $?; | ||
rename("$output_filename.part", $output_filename) or return undef; | ||
return $output_filename; | ||
|
@@ -5282,6 +5284,10 @@ If authentication is required, use: | |
'proto://user:[email protected]:port/' | ||
For example, to use Tor, install L<LWP::Protocol::socks> and set this value to: | ||
"socks://127.0.0.1:9050" | ||
=head2 ignore_av1 | ||
Ignore videos in AV1 format. | ||
|