line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTML::Video::Embed::Site::Kontraband; |
2
|
11
|
|
|
11
|
|
7303
|
use Moo; |
|
11
|
|
|
|
|
24
|
|
|
11
|
|
|
|
|
60
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
with 'HTML::Video::Embed::Module'; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub _build_domain_reg{ |
7
|
11
|
|
|
11
|
|
521
|
return qr/kontraband\.com/; |
8
|
|
|
|
|
|
|
} |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub _build_validate_reg{ |
11
|
1
|
|
|
1
|
|
372
|
return qr|^/videos/(\d+)|; |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub process{ |
15
|
3
|
|
|
3
|
0
|
6
|
my ( $self, $embeder, $uri ) = @_; |
16
|
|
|
|
|
|
|
|
17
|
3
|
100
|
|
|
|
11
|
if ( my ( $vid ) = $uri->path =~ m/${ \$self->validate_reg }/ ){ |
|
3
|
|
|
|
|
33
|
|
18
|
1
|
|
|
|
|
2
|
return qq||; |
|
1
|
|
|
|
|
31
|
|
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
2
|
|
|
|
|
97
|
return undef; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |