| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Mojolicious::Plugin::LinkEmbedder::Link::Game::_2play; |
|
2
|
1
|
|
|
1
|
|
416
|
use Mojo::Base 'Mojolicious::Plugin::LinkEmbedder::Link::Game'; |
|
|
1
|
|
|
|
|
1
|
|
|
|
1
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
has media_id => sub { shift->url->path->[2] || '' }; |
|
5
|
0
|
|
|
0
|
1
|
|
sub provider_name {'2play'} |
|
6
|
0
|
|
|
0
|
|
|
sub _js_embed_url {'http://video.nettavisen.no/javascripts/embed.js'} |
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub to_embed { |
|
9
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
10
|
0
|
0
|
|
|
|
|
my $media_id = $self->media_id or return $self->SUPER::to_embed; |
|
11
|
|
|
|
|
|
|
|
|
12
|
0
|
|
|
|
|
|
qq(); |
|
|
0
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
} |
|
14
|
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
1; |
|
16
|
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=encoding utf8 |
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=head1 NAME |
|
20
|
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
Mojolicious::Plugin::LinkEmbedder::Link::Game::_2play - 2play.com link |
|
22
|
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
This class inherit from L. |
|
26
|
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
|
28
|
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head2 media_id |
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
Returns the second path segment from L. |
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head2 provider_name |
|
34
|
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 METHODS |
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head2 to_embed |
|
38
|
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
Returns the HTML code for an iframe embedding this movie. |
|
40
|
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 AUTHOR |
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
Jan Henning Thorsen - C |
|
44
|
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
Marcus Ramberg - C |
|
46
|
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=cut |