line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::NicoVideo::Content::MylistRSS; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
1492
|
use strict; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
73
|
|
4
|
2
|
|
|
2
|
|
12
|
use warnings; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
49
|
|
5
|
2
|
|
|
2
|
|
1111
|
use utf8; |
|
2
|
|
|
|
|
11
|
|
|
2
|
|
|
|
|
14
|
|
6
|
2
|
|
|
2
|
|
110
|
use vars qw($VERSION); |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
137
|
|
7
|
|
|
|
|
|
|
$VERSION = '0.28'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# NOTE: Never inherit with classes that have "get()" or "set()", like Class::Accessor::Fast, |
10
|
|
|
|
|
|
|
# because these interfere with _component which is decorated with Net::NicoVideo::Decorator, like XML::FeedPP. |
11
|
2
|
|
|
2
|
|
10
|
use base qw(Net::NicoVideo::Content Net::NicoVideo::Decorator); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
676
|
|
12
|
2
|
|
|
2
|
|
2843
|
use XML::FeedPP; |
|
2
|
|
|
|
|
72733
|
|
|
2
|
|
|
|
|
794
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub members { # implement |
15
|
0
|
|
|
0
|
0
|
0
|
(); |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub parse { # implement |
19
|
1
|
|
|
1
|
0
|
3
|
my $self = shift; |
20
|
1
|
50
|
|
|
|
6
|
$self->load($_[0]) if( defined $_[0] ); |
21
|
1
|
|
|
|
|
5
|
$self->_component( XML::FeedPP->new($self->_decoded_content) ); |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
# status |
24
|
1
|
50
|
33
|
|
|
6
|
if( ref($self->_component) and $self->_component->isa('XML::FeedPP') ){ |
25
|
1
|
|
|
|
|
9
|
$self->set_status_success; |
26
|
|
|
|
|
|
|
}else{ |
27
|
0
|
|
|
|
|
0
|
$self->set_status_error; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
1
|
|
|
|
|
5
|
return $self; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
sub is_closed { |
34
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
35
|
0
|
0
|
0
|
|
|
|
if( $self->title eq 'マイリスト‐ニコニコ動画' |
|
|
|
0
|
|
|
|
|
36
|
|
|
|
|
|
|
and $self->link eq 'http://www.nicovideo.jp/' |
37
|
|
|
|
|
|
|
and $self->description eq 'このマイリストは非公開に設定されています。' |
38
|
|
|
|
|
|
|
){ |
39
|
0
|
|
|
|
|
|
return 1; |
40
|
|
|
|
|
|
|
} |
41
|
0
|
|
|
|
|
|
return 0; |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
1; |
46
|
|
|
|
|
|
|
__END__ |