line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTML::Video::Embed::Site::Collegehumor; |
2
|
11
|
|
|
11
|
|
93199
|
use Moo; |
|
11
|
|
|
|
|
28
|
|
|
11
|
|
|
|
|
93
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
with 'HTML::Video::Embed::Module'; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub _build_domain_reg{ |
7
|
11
|
|
|
11
|
|
4226
|
return qr/collegehumor\.com/; |
8
|
|
|
|
|
|
|
} |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub _build_validate_reg{ |
11
|
1
|
|
|
1
|
|
430
|
return qr|^/video[:\/](\d+)|; |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub process{ |
15
|
6
|
|
|
6
|
0
|
10
|
my ( $self, $embeder, $uri ) = @_; |
16
|
|
|
|
|
|
|
|
17
|
6
|
100
|
|
|
|
17
|
if ( my ( $vid ) = $uri->path =~ m/${ \$self->validate_reg }/ ){ |
|
6
|
|
|
|
|
84
|
|
18
|
3
|
|
|
|
|
61
|
return qq||; |
|
3
|
|
|
|
|
117
|
|
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
3
|
|
|
|
|
98
|
return undef; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |