File tree Expand file tree Collapse file tree 3 files changed +18
-18
lines changed
Expand file tree Collapse file tree 3 files changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ no warnings 'once';
2828my $DEVEL ; # true in devel mode
2929use if ($DEVEL = -w __FILE__ ), lib => qw( ../lib) ; # devel only
3030
31- use WWW::YoutubeViewer v3.10.7 ;
31+ use WWW::YoutubeViewer v3.10.8 ;
3232use WWW::YoutubeViewer::RegularExpressions;
3333
3434use Gtk3 qw( -init) ;
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ no warnings 'once';
6262my $DEVEL ; # true in devel mode
6363use if ($DEVEL = -w __FILE__ ), lib => qw( ../lib) ; # devel mode
6464
65- use WWW::YoutubeViewer v3.10.7 ;
65+ use WWW::YoutubeViewer v3.10.8 ;
6666use WWW::YoutubeViewer::RegularExpressions;
6767
6868use File::Spec::Functions qw(
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ WWW::YoutubeViewer - A very easy interface to YouTube.
4242
4343=cut
4444
45- our $VERSION = ' 3.10.7 ' ;
45+ our $VERSION = ' 3.10.8 ' ;
4646
4747=head1 SYNOPSIS
4848
@@ -1052,29 +1052,29 @@ sub _get_youtubei_content {
10521052
10531053 require Time::Piece;
10541054
1055+ my $android_useragent = ' com.google.android.youtube/17.31.35 (Linux; U; Android 11) gzip' ;
1056+
10551057 my %android = (
1056- " videoId" => $videoID ,
1057- " context" => {
1058- " client" => {
1059- " hl" => " en" ,
1060- " gl" => " US" ,
1061- " clientName" => " ANDROID" ,
1062-
1063- # "clientVersion" => "16.20",
1064- ' clientVersion' => ' 17.31.35' ,
1065- ' androidSdkVersion' => 30,
1066- ' userAgent' => ' com.google.android.youtube/17.31.35 (Linux; U; Android 11) gzip' ,
1067- %args ,
1068- }
1069- },
1058+ " videoId" => $videoID ,
1059+ " context" => {
1060+ " client" => {
1061+ ' hl' => ' en' ,
1062+ ' gl' => ' US' ,
1063+ ' clientName' => ' ANDROID' ,
1064+ ' clientVersion' => ' 17.31.35' ,
1065+ ' androidSdkVersion' => 30,
1066+ ' userAgent' => $android_useragent ,
1067+ %args ,
1068+ }
1069+ },
10701070 );
10711071
10721072 $self -> {lwp } // $self -> set_lwp_useragent();
10731073
10741074 my $agent = $self -> {lwp }-> agent;
10751075
10761076 if ($endpoint ne ' next' ) {
1077- $self -> {lwp }-> agent(' com.google.android.youtube/17.31.35 (Linux; U; Android 11) gzip ' );
1077+ $self -> {lwp }-> agent($android_useragent );
10781078 }
10791079
10801080 my %web = (
You can’t perform that action at this time.
0 commit comments