line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTML::Video::Embed::Site::Collegehumor; |
2
|
9
|
|
|
9
|
|
40457
|
use Moo; |
|
9
|
|
|
|
|
18
|
|
|
9
|
|
|
|
|
60
|
|
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
|
69
|
qr/collegehumor\.com/ |
11
|
|
|
|
|
|
|
} |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub process { |
14
|
6
|
|
|
6
|
0
|
6
|
my ( $self, $embeder, $uri ) = @_; |
15
|
|
|
|
|
|
|
|
16
|
6
|
50
|
|
|
|
20
|
my $schema = $embeder->secure ? 'https' : 'http'; |
17
|
6
|
100
|
|
|
|
16
|
if ( my ( $vid ) = $uri->path =~ m|^/video[:\/](\d+)| ) { |
18
|
3
|
|
|
|
|
37
|
return qq||; |
|
3
|
|
|
|
|
32
|
|
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
3
|
|
|
|
|
35
|
return undef; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |