line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::NicoVideo::Content::Video; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
1461
|
use strict; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
39
|
|
4
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
34
|
|
5
|
1
|
|
|
1
|
|
8
|
use vars qw($VERSION); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
66
|
|
6
|
|
|
|
|
|
|
$VERSION = '0.28'; |
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
6
|
use base qw(Net::NicoVideo::Content Class::Accessor::Fast); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
167
|
|
9
|
|
|
|
|
|
|
|
10
|
1
|
|
|
1
|
|
5
|
use vars qw(@Members); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
185
|
|
11
|
|
|
|
|
|
|
@Members = qw( |
12
|
|
|
|
|
|
|
content_ref |
13
|
|
|
|
|
|
|
); |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
__PACKAGE__->mk_accessors(@Members); |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub members { # implement |
18
|
0
|
|
|
0
|
0
|
|
my @copy = @Members; |
19
|
0
|
|
|
|
|
|
@copy; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub parse { # implement |
23
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
24
|
0
|
0
|
|
|
|
|
$self->load($_[0]) if( defined $_[0] ); |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
# TODO - temporary return |
27
|
0
|
|
|
|
|
|
$self->content_ref( $self->_decoded_content ); |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
# status TODO - the judgement is detected by response header |
30
|
0
|
0
|
|
|
|
|
if( $self ){ |
31
|
0
|
|
|
|
|
|
$self->set_status_success; |
32
|
|
|
|
|
|
|
}else{ |
33
|
0
|
|
|
|
|
|
$self->set_status_error; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
0
|
|
|
|
|
|
return $self; |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
1; |
41
|
|
|
|
|
|
|
__END__ |