line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Duadua::Parser::Bot::Feedspot; |
2
|
6
|
|
|
6
|
|
894
|
use strict; |
|
6
|
|
|
|
|
14
|
|
|
6
|
|
|
|
|
168
|
|
3
|
6
|
|
|
6
|
|
27
|
use warnings; |
|
6
|
|
|
|
|
12
|
|
|
6
|
|
|
|
|
140
|
|
4
|
6
|
|
|
6
|
|
36
|
use Duadua::Util qw//; |
|
6
|
|
|
|
|
10
|
|
|
6
|
|
|
|
|
1060
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub try { |
7
|
62
|
|
|
62
|
1
|
118
|
my ($class, $d) = @_; |
8
|
|
|
|
|
|
|
|
9
|
62
|
100
|
|
|
|
117
|
if ( index($d->ua, ' Feedspot/') > -1 ) { |
10
|
2
|
|
|
|
|
16
|
my $h = { |
11
|
|
|
|
|
|
|
name => 'Feedspot', |
12
|
|
|
|
|
|
|
is_bot => 1, |
13
|
|
|
|
|
|
|
}; |
14
|
|
|
|
|
|
|
|
15
|
2
|
100
|
|
|
|
7
|
if ($d->opt_version) { |
16
|
1
|
|
|
|
|
6
|
my ($version) = ($d->ua =~ m! Feedspot/([\d.]+)!); |
17
|
1
|
50
|
|
|
|
8
|
$h->{version} = $version if $version; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
2
|
|
|
|
|
20
|
return $h; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
__END__ |