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