line |
true |
false |
branch |
29
|
32 |
0 |
unless exists $args{'ua'} |
39
|
0 |
0 |
unless $video_id |
47
|
0 |
0 |
unless $video_id |
59
|
0 |
0 |
unless $video_id |
82
|
0 |
0 |
defined $args->{'overwrite'} ? : |
|
0 |
0 |
unless ref $args->{'cb'} eq 'CODE' |
85
|
0 |
0 |
if $res->is_error |
90
|
0 |
0 |
unless defined $filename |
91
|
0 |
0 |
unless $data->{$1} |
98
|
0 |
0 |
defined $data->{'video_url_map'}{$fmt}{'url'} ? : |
104
|
0 |
0 |
unless (defined $args->{'_progress'}) |
105
|
0 |
0 |
unless eval 'require Term::ProgressBar' |
107
|
0 |
0 |
$total > 50000000 ? : |
120
|
0 |
0 |
if -f $file and not $overwrite |
121
|
0 |
0 |
unless open my $wfh, '>', $file |
124
|
0 |
0 |
if $verbose |
129
|
0 |
0 |
if ($verbose or $self->{'verbose'}) |
133
|
0 |
0 |
if ($progress) |
134
|
0 |
0 |
if (my $p = $self->_progress($args, $total)) { } |
145
|
0 |
0 |
if $total == $size |
152
|
0 |
1 |
unless $video_id |
155
|
0 |
1 |
if ref $self->{'cache'}{$video_id} eq 'HASH' |
159
|
1 |
0 |
if ($self->_is_new($content)) { } |
203
|
0 |
0 |
$stype eq '3gp' ? : |
|
2 |
0 |
$stype eq 'mp4' ? : |
|
0 |
2 |
$stype eq 'webm' ? : |
231
|
0 |
0 |
unless my($title) = $content =~ // |
238
|
1 |
0 |
if ($content =~ m[
|
|
0 |
0 |
elsif ($content =~ /","author":"([^"]+)","/) { } |
251
|
0 |
0 |
unless ($args->{'fmt_list'} and $args->{'url_encoded_fmt_stream_map'}) |
283
|
0 |
0 |
if $res->is_error |
293
|
0 |
2 |
unless $line |
294
|
0 |
2 |
if ($line =~ /the uploader has not made this video available in your country/i) { } |
|
2 |
0 |
elsif ($line =~ /^.+ytplayer\.config\s*=\s*(\{.*})/) { } |
303
|
0 |
2 |
unless $data->{'args'} |
311
|
1 |
0 |
unless $args->{'fmt_list'} and $args->{'url_encoded_fmt_stream_map'} |
330
|
0 |
0 |
if (@s == 93) { } |
|
0 |
0 |
elsif (@s == 92) { } |
|
0 |
0 |
elsif (@s == 91) { } |
|
0 |
0 |
elsif (@s == 90) { } |
|
0 |
0 |
elsif (@s == 89) { } |
|
0 |
0 |
elsif (@s == 88) { } |
|
0 |
0 |
elsif (@s == 87) { } |
|
0 |
0 |
elsif (@s == 86) { } |
|
0 |
0 |
elsif (@s == 85) { } |
|
0 |
0 |
elsif (@s == 84) { } |
|
0 |
0 |
elsif (@s == 83) { } |
|
0 |
0 |
elsif (@s == 82) { } |
|
0 |
0 |
elsif (@s == 81) { } |
|
0 |
0 |
elsif (@s == 80) { } |
|
0 |
0 |
elsif (@s == 79) { } |
367
|
0 |
0 |
unless $sig |
369
|
0 |
0 |
unless @sig |
382
|
0 |
0 |
$sig ? : |
390
|
0 |
0 |
unless $ua |
391
|
0 |
0 |
unless eval {
do {
$ua->isa('LWP::UserAgent')
}
} |
397
|
0 |
0 |
$fmt =~ /13|17/ ? : |
|
0 |
0 |
$fmt =~ /18|22|37|38/ ? : |
|
0 |
0 |
$fmt =~ /43|44|45|46/ ? : |
406
|
0 |
17 |
unless $stuff |
407
|
8 |
9 |
if ($stuff =~ m[/.*?[?&;!](?:v|video_id)=([^&#?=/;]+)]) { } |
|
4 |
5 |
elsif ($stuff =~ m[/(?:e|v|embed)/([^&#?=/;]+)]) { } |
|
1 |
4 |
elsif ($stuff =~ m[#p/(?:u|search)/\d+/([^&?/]+)]) { } |
|
1 |
3 |
elsif ($stuff =~ m[youtu.be/([^&#?=/;]+)]) { } |
426
|
0 |
10 |
unless $stuff |
427
|
4 |
6 |
if ($stuff =~ m[/.*?[?&;!]list=([^&#?=/;]+)]) { } |
|
3 |
3 |
elsif ($stuff =~ /^\s*([FP]L[\w\-]+)\s*$/) { } |
438
|
0 |
4 |
unless $stuff |
439
|
3 |
1 |
if ($stuff =~ m[/user/([^&#?=/;]+)]) |