line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Duadua::Parser::Bot::GoogleRead; |
2
|
6
|
|
|
6
|
|
38
|
use strict; |
|
6
|
|
|
|
|
13
|
|
|
6
|
|
|
|
|
177
|
|
3
|
6
|
|
|
6
|
|
35
|
use warnings; |
|
6
|
|
|
|
|
11
|
|
|
6
|
|
|
|
|
130
|
|
4
|
6
|
|
|
6
|
|
29
|
use Duadua::Util; |
|
6
|
|
|
|
|
12
|
|
|
6
|
|
|
|
|
784
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub try { |
7
|
335
|
|
|
335
|
1
|
699
|
my ($class, $d) = @_; |
8
|
|
|
|
|
|
|
|
9
|
335
|
100
|
|
|
|
637
|
if ($d->ua eq 'google-speakr') { |
10
|
|
|
|
|
|
|
return { |
11
|
1
|
|
|
|
|
6
|
name => 'google-speakr', |
12
|
|
|
|
|
|
|
is_bot => 1, |
13
|
|
|
|
|
|
|
}; |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
334
|
100
|
|
|
|
793
|
if ( index($d->ua, 'Google-Read-Aloud') > -1 ) { |
17
|
1
|
|
|
|
|
5
|
my $h = { |
18
|
|
|
|
|
|
|
name => 'Google-Read-Aloud', |
19
|
|
|
|
|
|
|
is_bot => 1, |
20
|
|
|
|
|
|
|
}; |
21
|
1
|
|
|
|
|
8
|
return Duadua::Util->set_os($d, $h); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
1; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
__END__ |