line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::NicoVideo::Content::TagRSS; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
1965
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
50
|
|
4
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
30
|
|
5
|
1
|
|
|
1
|
|
6
|
use utf8; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
10
|
|
6
|
1
|
|
|
1
|
|
28
|
use vars qw($VERSION); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
72
|
|
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
|
1
|
|
|
1
|
|
5
|
use base qw(Net::NicoVideo::Content Net::NicoVideo::Decorator); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
200
|
|
12
|
1
|
|
|
1
|
|
6
|
use XML::FeedPP; |
|
1
|
|
|
|
|
17
|
|
|
1
|
|
|
|
|
333
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub members { # implement |
15
|
0
|
|
|
0
|
0
|
|
(); |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub parse { # implement |
19
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
20
|
0
|
0
|
|
|
|
|
$self->load($_[0]) if( defined $_[0] ); |
21
|
0
|
|
|
|
|
|
$self->_component( XML::FeedPP->new($self->_decoded_content) ); |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
# status |
24
|
0
|
0
|
0
|
|
|
|
if( ref($self->_component) and $self->_component->isa('XML::FeedPP') ){ |
25
|
0
|
|
|
|
|
|
$self->set_status_success; |
26
|
|
|
|
|
|
|
}else{ |
27
|
0
|
|
|
|
|
|
$self->set_status_error; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
0
|
|
|
|
|
|
return $self; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |
34
|
|
|
|
|
|
|
__END__ |