line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Duadua::Parser::Bot::Feedly; |
2
|
6
|
|
|
6
|
|
42
|
use strict; |
|
6
|
|
|
|
|
13
|
|
|
6
|
|
|
|
|
187
|
|
3
|
6
|
|
|
6
|
|
93
|
use warnings; |
|
6
|
|
|
|
|
14
|
|
|
6
|
|
|
|
|
149
|
|
4
|
6
|
|
|
6
|
|
29
|
use Duadua::Util qw//; |
|
6
|
|
|
|
|
12
|
|
|
6
|
|
|
|
|
1053
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub try { |
7
|
77
|
|
|
77
|
1
|
160
|
my ($class, $d) = @_; |
8
|
|
|
|
|
|
|
|
9
|
77
|
100
|
|
|
|
164
|
if ( index($d->ua, 'Feedly/') > -1 ) { |
10
|
4
|
|
|
|
|
16
|
my $h = { |
11
|
|
|
|
|
|
|
name => 'Feedly', |
12
|
|
|
|
|
|
|
is_bot => 1, |
13
|
|
|
|
|
|
|
}; |
14
|
|
|
|
|
|
|
|
15
|
4
|
100
|
|
|
|
10
|
if ($d->opt_version) { |
16
|
2
|
|
|
|
|
6
|
my ($version) = ($d->ua =~ m!^(?:Meta)?Feedly/([\d.]+)!); |
17
|
2
|
50
|
|
|
|
9
|
$h->{version} = $version if $version; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
4
|
|
|
|
|
19
|
return Duadua::Util->set_os($d, $h); |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
__END__ |