Branch Coverage

blib/lib/StreamFinder/BannedVideo.pm
Criterion Covered Total %
branch 0 162 0.0


line true false branch
320 0 0 unless $url
325 0 0 if (open IN, $p)
329 0 0 if /^\s*\#/o
339 0 0 if defined $uops{$i}
342 0 0 unless defined $uops{'agent'}
343 0 0 unless defined $uops{'timeout'}
344 0 0 if defined $uops{'debug'}
347 0 0 if ($_[0] =~ /^\-?debug$/o) { }
0 0 elsif ($_[0] =~ /^\-?keep$/o) { }
349 0 0 defined $_[0] && $_[0] =~ /^[0-9]$/ ? :
352 0 0 if (defined $_[0])
354 0 0 ref($keeporder) =~ /ARRAY/ ? :
360 0 0 if (not defined $okStreams[0] and defined $uops{'keep'})
361 0 0 ref($uops{'keep'}) =~ /ARRAY/ ? :
363 0 0 unless defined $okStreams[0]
365 0 0 if $DEBUG
368 0 0 if ($url =~ /^https?\:/) { }
369 0 0 if $url2fetch =~ m[\/([^\/]+)\/?$]
375 0 0 unless $self->{'id'}
379 0 0 if $DEBUG
385 0 0 if ($response->is_success) { }
388 0 0 if $DEBUG
390 0 0 unless ($no_wget)
391 0 0 if $DEBUG
395 0 0 if $DEBUG > 1
396 0 0 unless $html
404 0 0 if ($streamtype =~ /^(embed|direct|stream)$/i) { }
0 0 elsif ($streamtype =~ /^a(?:ny|ll)$/i) { }
415 0 0 if $DEBUG
416 0 0 unless $#streams >= 0
421 0 0 if ($streams[$i] =~ m[api\.infowarsmedia\.com/embed]o)
423 0 0 if $DEBUG
426 0 0 if ($response->is_success) { }
429 0 0 if $DEBUG
431 0 0 unless ($no_wget)
432 0 0 if $DEBUG
436 0 0 if $DEBUG > 1
437 0 0 if ($html =~ /\bdownloadUrl\=\"([^\"]+)\"/)
438 0 0 if $DEBUG
447 0 0 $html =~ /\"title\"\s*\:\s*\"([^\"]+)\"/is ? :
448 0 0 $html =~ /\bname\=\"description\"\s+content\=\"([^\"]+)\"/s ? :
453 0 0 $html =~ /\"(?:poster)?ThumbnailUrl\"\s*\:\s*\"([^\"]+)\"/is ? :
454 0 0 $html =~ /\"posterLargeUrl\"\s*\:\s*\"([^\"]+)\"/is ? :
455 0 0 $html =~ /\"largeImage\"\s*\:\s*\"([^\"]+)\"/is ? :
0 0 if $html =~ /\"largeImage\"\s*\:\s*\"([^\"]+)\"/is ? $1 : ''
458 0 0 if $html =~ /\"createdAt\"\s*\:\s*\"([^\"]+)\"/is
459 0 0 if $html =~ /\"updatedAt\"\s*\:\s*\"([^\"]+)\"/is
460 0 0 if (defined $self->{'updated'} and $self->{'updated'} =~ /(\d\d\d\d)/) { }
463 0 0 if defined $self->{'created'} and $self->{'created'} =~ /(\d\d\d\d)/
468 0 0 if $DEBUG
469 0 0 if $DEBUG
480 0 0 wantarray ? :
486 0 0 defined $_[0] ? :
487 0 0 $arglist =~ /\b\-?random\b/ ? :
488 0 0 if ($arglist =~ /\b\-?noplaylists\b/ and do { $$self{'streams'} }->[$idx] =~ /\.(pls|m3u8?)$/i)
491 0 0 if $DEBUG
498 0 0 if ($response->is_success) { }
501 0 0 if $DEBUG
503 0 0 unless ($no_wget)
504 0 0 if $DEBUG
510 0 0 if ($plType =~ /pls/) { }
513 0 0 if ($line =~ /^\s*File\d+\=(.+)$/) { }
0 0 elsif ($line =~ /^\s*Title\d+\=(.+)$/) { }
520 0 0 if $DEBUG
524 0 0 if ($line =~ /^\s*([^#].+)$/)
528 0 0 $urlpart =~ /https?\:/ ? :
532 0 0 if $DEBUG
560 0 0 if defined $_[0] and $_[0] =~ /^\-?(?:long|desc)/i
573 0 0 unless $self->{'iconurl'}
581 0 0 if ($response->is_success) { }
584 0 0 if $DEBUG
586 0 0 unless ($no_wget)
587 0 0 if $DEBUG
592 0 0 unless $art_image
609 0 0 unless $self->{'imageurl'}
616 0 0 if ($response->is_success) { }
619 0 0 if $DEBUG
621 0 0 unless ($no_wget)
622 0 0 if $DEBUG
627 0 0 unless $art_image
629 0 0 $self->{'imageurl'} =~ /\.(\w+)$/ ? :