line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTML::Video::Embed::Site::EbaumsWorld; |
2
|
11
|
|
|
11
|
|
6857
|
use Moo; |
|
11
|
|
|
|
|
21
|
|
|
11
|
|
|
|
|
57
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
with 'HTML::Video::Embed::Module'; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub _build_domain_reg{ |
7
|
11
|
|
|
11
|
|
444
|
return qr/ebaumsworld\.com/; |
8
|
|
|
|
|
|
|
} |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub _build_validate_reg{ |
11
|
1
|
|
|
1
|
|
659
|
return qr|^/video/watch/(\d+)|; |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub process{ |
15
|
3
|
|
|
3
|
0
|
6
|
my ( $self, $embeder, $uri ) = @_; |
16
|
|
|
|
|
|
|
|
17
|
3
|
100
|
|
|
|
13
|
if ( my ( $vid ) = $uri->path =~ m/${ \$self->validate_reg }/ ){ |
|
3
|
|
|
|
|
43
|
|
18
|
1
|
|
|
|
|
2
|
return qq||; |
|
1
|
|
|
|
|
36
|
|
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
2
|
|
|
|
|
78
|
return undef; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |