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