line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTML::Video::Embed::Site::LiveLeak; |
2
|
9
|
|
|
9
|
|
3835
|
use Moo; |
|
9
|
|
|
|
|
12
|
|
|
9
|
|
|
|
|
42
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
with 'HTML::Video::Embed::Module'; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '0.016000'; |
7
|
|
|
|
|
|
|
$VERSION = eval $VERSION; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub domain_reg { |
10
|
10
|
|
|
10
|
0
|
52
|
return qr/liveleak\.com/; |
11
|
|
|
|
|
|
|
} |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub process { |
14
|
5
|
|
|
5
|
0
|
7
|
my ( $self, $embeder, $uri ) = @_; |
15
|
|
|
|
|
|
|
|
16
|
5
|
100
|
|
|
|
19
|
return undef if $embeder->secure; |
17
|
|
|
|
|
|
|
|
18
|
4
|
|
|
|
|
4
|
my $query_param = 'i'; |
19
|
|
|
|
|
|
|
|
20
|
4
|
|
|
|
|
16
|
my $vid = $uri->query_param('i'); |
21
|
4
|
100
|
|
|
|
162
|
if ( !$vid ){ |
22
|
2
|
|
|
|
|
5
|
$vid = $uri->query_param('f'); |
23
|
2
|
|
|
|
|
59
|
$query_param = 'f'; |
24
|
|
|
|
|
|
|
} |
25
|
4
|
|
100
|
|
|
11
|
$vid ||= ''; |
26
|
|
|
|
|
|
|
|
27
|
4
|
100
|
|
|
|
13
|
if ( $vid =~ m/^(?:\w{3}_\w{10}|\w{12})$/ ) { |
28
|
2
|
|
|
|
|
3
|
return qq||; |
|
2
|
|
|
|
|
29
|
|
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
2
|
|
|
|
|
10
|
return undef; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
1; |