line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTML::Video::Embed::Site::YahooScreen; |
2
|
11
|
|
|
11
|
|
7191
|
use Moo; |
|
11
|
|
|
|
|
24
|
|
|
11
|
|
|
|
|
52
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
with 'HTML::Video::Embed::Module'; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub _build_domain_reg{ |
7
|
11
|
|
|
11
|
|
499
|
return qr/screen\.yahoo\.com/; |
8
|
|
|
|
|
|
|
} |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub _build_validate_reg{ |
11
|
1
|
|
|
1
|
|
559
|
return qr|\w+\-(\d+)\.html|; |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub process{ |
15
|
3
|
|
|
3
|
0
|
8
|
my ( $self, $embeder, $uri ) = @_; |
16
|
|
|
|
|
|
|
|
17
|
3
|
100
|
|
|
|
15
|
if ( my ( $vid ) = $uri->path =~ m/${ \$self->validate_reg }/ ){ |
|
3
|
|
|
|
|
45
|
|
18
|
1
|
|
|
|
|
2
|
return qq||; |
|
1
|
|
|
|
|
44
|
|
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
2
|
|
|
|
|
90
|
return undef; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |