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