diff options
author | David Phillips <david@yeah.nah.nz> | 2020-06-12 19:36:02 +1200 |
---|---|---|
committer | David Phillips <david@yeah.nah.nz> | 2020-06-12 19:36:02 +1200 |
commit | d6d806602b6849bbbc342c30fe173e131382e458 (patch) | |
tree | 8d23cdcea8d75fa09eb80748f9e8d09841c0b185 | |
parent | 4f1f44cc656df0601f8cb6c5d4770d3efb55c43e (diff) | |
download | idalius-d6d806602b6849bbbc342c30fe173e131382e458.tar.xz |
URL_Title: Set Mozilla 5.0 compatible UA string
This should hopefully address some intermittent blank/simple/default looking
pages returned by YouTube intermittently.
-rw-r--r-- | Plugin/URL_Title.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Plugin/URL_Title.pm b/Plugin/URL_Title.pm index 4b85a02..451603a 100644 --- a/Plugin/URL_Title.pm +++ b/Plugin/URL_Title.pm @@ -78,7 +78,7 @@ sub get_title "Accept" => "text/html, image/svg+xml", "Acceot-Encoding" => "gzip" ); - my $http = HTTP::Tiny->new((default_headers => \%headers, timeout => 3)); + my $http = HTTP::Tiny->new((default_headers => \%headers, timeout => 3, agent => 'Mozilla/5.0 (compatible; idalius IRC bot)')); my $response = $http->get($url); |