Skip to content

Commit

Permalink
Version 3.10.8
Browse files Browse the repository at this point in the history
  • Loading branch information
trizen committed Jun 11, 2023
1 parent c0da3e8 commit 7a5c1c4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion bin/gtk-youtube-viewer
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ no warnings 'once';
my $DEVEL; # true in devel mode
use if ($DEVEL = -w __FILE__), lib => qw(../lib); # devel only

use WWW::YoutubeViewer v3.10.7;
use WWW::YoutubeViewer v3.10.8;
use WWW::YoutubeViewer::RegularExpressions;

use Gtk3 qw(-init);
Expand Down
2 changes: 1 addition & 1 deletion bin/youtube-viewer
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ no warnings 'once';
my $DEVEL; # true in devel mode
use if ($DEVEL = -w __FILE__), lib => qw(../lib); # devel mode

use WWW::YoutubeViewer v3.10.7;
use WWW::YoutubeViewer v3.10.8;
use WWW::YoutubeViewer::RegularExpressions;

use File::Spec::Functions qw(
Expand Down
32 changes: 16 additions & 16 deletions lib/WWW/YoutubeViewer.pm
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ WWW::YoutubeViewer - A very easy interface to YouTube.
=cut

our $VERSION = '3.10.7';
our $VERSION = '3.10.8';

=head1 SYNOPSIS
Expand Down Expand Up @@ -1052,29 +1052,29 @@ sub _get_youtubei_content {

require Time::Piece;

my $android_useragent = 'com.google.android.youtube/17.31.35 (Linux; U; Android 11) gzip';

my %android = (
"videoId" => $videoID,
"context" => {
"client" => {
"hl" => "en",
"gl" => "US",
"clientName" => "ANDROID",

#"clientVersion" => "16.20",
'clientVersion' => '17.31.35',
'androidSdkVersion' => 30,
'userAgent' => 'com.google.android.youtube/17.31.35 (Linux; U; Android 11) gzip',
%args,
}
},
"videoId" => $videoID,
"context" => {
"client" => {
'hl' => 'en',
'gl' => 'US',
'clientName' => 'ANDROID',
'clientVersion' => '17.31.35',
'androidSdkVersion' => 30,
'userAgent' => $android_useragent,
%args,
}
},
);

$self->{lwp} // $self->set_lwp_useragent();

my $agent = $self->{lwp}->agent;

if ($endpoint ne 'next') {
$self->{lwp}->agent('com.google.android.youtube/17.31.35 (Linux; U; Android 11) gzip');
$self->{lwp}->agent($android_useragent);
}

my %web = (
Expand Down

0 comments on commit 7a5c1c4

Please sign in to comment.