line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Duadua::Parser::Bot::Feedly; |
2
|
6
|
|
|
6
|
|
38
|
use strict; |
|
6
|
|
|
|
|
12
|
|
|
6
|
|
|
|
|
169
|
|
3
|
6
|
|
|
6
|
|
88
|
use warnings; |
|
6
|
|
|
|
|
11
|
|
|
6
|
|
|
|
|
140
|
|
4
|
6
|
|
|
6
|
|
31
|
use Duadua::Util qw//; |
|
6
|
|
|
|
|
9
|
|
|
6
|
|
|
|
|
868
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub try { |
7
|
77
|
|
|
77
|
1
|
203
|
my ($class, $d) = @_; |
8
|
|
|
|
|
|
|
|
9
|
77
|
100
|
|
|
|
181
|
if ( index($d->ua, 'Feedly/') > -1 ) { |
10
|
4
|
|
|
|
|
27
|
my $h = { |
11
|
|
|
|
|
|
|
name => 'Feedly', |
12
|
|
|
|
|
|
|
is_bot => 1, |
13
|
|
|
|
|
|
|
}; |
14
|
|
|
|
|
|
|
|
15
|
4
|
100
|
|
|
|
14
|
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
|
|
|
|
|
23
|
return Duadua::Util->set_os($d, $h); |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
__END__ |