line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::NicoVideo::Content::MylistPage; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
1620
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
111
|
|
4
|
1
|
|
|
1
|
|
7
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
43
|
|
5
|
1
|
|
|
1
|
|
7
|
use vars qw($VERSION); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
71
|
|
6
|
|
|
|
|
|
|
$VERSION = '0.28'; |
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
5
|
use base qw(Net::NicoVideo::Content Class::Accessor::Fast); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
141
|
|
9
|
|
|
|
|
|
|
|
10
|
1
|
|
|
1
|
|
6
|
use vars qw(@Members); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
274
|
|
11
|
|
|
|
|
|
|
@Members = qw( |
12
|
|
|
|
|
|
|
token |
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
|
0
|
|
|
|
|
|
my $content = $self->_decoded_content; |
27
|
0
|
0
|
|
|
|
|
if( $content =~ /NicoAPI\.token\s*=\s*"([-\w]+)"/ ){ |
28
|
0
|
|
|
|
|
|
$self->token( $1 ); |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
# status |
32
|
0
|
0
|
|
|
|
|
if( $self->token ){ |
33
|
0
|
|
|
|
|
|
$self->set_status_success; |
34
|
|
|
|
|
|
|
}else{ |
35
|
0
|
|
|
|
|
|
$self->set_status_error; |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
0
|
|
|
|
|
|
return $self; |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
1; |
43
|
|
|
|
|
|
|
__END__ |