Skip to content

Commit

Permalink
Version 0.4.7
Browse files Browse the repository at this point in the history
  • Loading branch information
trizen committed Jun 11, 2023
1 parent 3ad8630 commit fa5db49
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 18 deletions.
4 changes: 4 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@

[CHANGELOG]

Version 0.4.7

- Fixed the slow loading of videos, when using the internal extraction method of streaming URLs.

Version 0.4.6

- Fixed the internal extracting of streaming URLs.
Expand Down
2 changes: 1 addition & 1 deletion bin/gtk-pipe-viewer
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ use Cwd qw(abs_path);
my $DEVEL;
use if ($DEVEL = -w __FILE__), lib => abs_path(__FILE__ . '/../../lib');

use WWW::PipeViewer v0.4.6;
use WWW::PipeViewer v0.4.7;
use WWW::PipeViewer::DiskCache;
use WWW::PipeViewer::ParseJSON;
use WWW::PipeViewer::RegularExpressions;
Expand Down
2 changes: 1 addition & 1 deletion bin/pipe-viewer
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ use Cwd qw(abs_path);
my $DEVEL;
use if ($DEVEL = -w __FILE__), lib => abs_path(__FILE__ . '/../../lib');

use WWW::PipeViewer v0.4.6;
use WWW::PipeViewer v0.4.7;
use WWW::PipeViewer::ParseJSON;
use WWW::PipeViewer::RegularExpressions;

Expand Down
32 changes: 16 additions & 16 deletions lib/WWW/PipeViewer.pm
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ WWW::PipeViewer - A simple interface to YouTube.
=cut

our $VERSION = '0.4.6';
our $VERSION = '0.4.7';

=head1 SYNOPSIS
Expand Down Expand Up @@ -1107,29 +1107,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 fa5db49

Please sign in to comment.