Skip to content

Commit 9a076cf

Browse files
committed
- Always extract the video URLs with yt-dlp (fixes #444)
- Version 3.11.5
1 parent 8832d3b commit 9a076cf

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ For trying the latest commit of `youtube-viewer`, without installing it, execute
7070
* [LWP::Protocol::https](https://metacpan.org/release/LWP-Protocol-https)
7171
* [Data::Dump](https://metacpan.org/release/Data-Dump)
7272
* [JSON](https://metacpan.org/release/JSON)
73+
* [yt-dlp](https://github.com/yt-dlp/yt-dlp) or [youtube-dl](https://github.com/ytdl-org/youtube-dl).
7374

7475
#### For gtk-youtube-viewer:
7576

@@ -83,8 +84,6 @@ For trying the latest commit of `youtube-viewer`, without installing it, execute
8384
* Better STDIN support (+history): [Term::ReadLine::Gnu](https://metacpan.org/release/Term-ReadLine-Gnu)
8485
* Faster JSON deserialization: [JSON::XS](https://metacpan.org/release/JSON-XS)
8586
* Fixed-width formatting: [Unicode::LineBreak](https://metacpan.org/release/Unicode-LineBreak) or [Text::CharWidth](https://metacpan.org/release/Text-CharWidth)
86-
* [yt-dlp](https://github.com/yt-dlp/yt-dlp) or [youtube-dl](https://github.com/ytdl-org/youtube-dl).
87-
8887

8988
### PACKAGING
9089

bin/gtk-youtube-viewer

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#-------------------------------------------------------
1616
# GTK YouTube Viewer
1717
# Created on: 12 September 2010
18-
# Latest edit on: 21 January 2025
18+
# Latest edit on: 29 March 2025
1919
# https://github.com/trizen/youtube-viewer
2020
#-------------------------------------------------------
2121

bin/youtube-viewer

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#-------------------------------------------------------
1616
# youtube-viewer
1717
# Created on: 02 June 2010
18-
# Latest edit on: 21 January 2025
18+
# Latest edit on: 29 March 2025
1919
# https://github.com/trizen/youtube-viewer
2020
#-------------------------------------------------------
2121

@@ -82,7 +82,7 @@ sub devel_path {
8282

8383
use if $DEVEL, lib => $DEVEL && catdir(devel_path(), 'lib');
8484

85-
use WWW::YoutubeViewer v3.11.4;
85+
use WWW::YoutubeViewer v3.11.5;
8686
use WWW::YoutubeViewer::RegularExpressions;
8787

8888
binmode(STDOUT, ':utf8');

lib/WWW/YoutubeViewer.pm

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ WWW::YoutubeViewer - A very easy interface to YouTube.
4444
4545
=cut
4646

47-
our $VERSION = '3.11.4';
47+
our $VERSION = '3.11.5';
4848

4949
=head1 SYNOPSIS
5050
@@ -1319,7 +1319,8 @@ sub get_streaming_urls {
13191319
}
13201320

13211321
# Try again with yt-dlp / youtube-dl
1322-
if ( !@streaming_urls
1322+
if ( 1
1323+
or !@streaming_urls
13231324
or (($json->{playabilityStatus}{status} // '') =~ /fail|error|unavailable|not available/i)
13241325
or $self->get_force_fallback
13251326
or (($json->{videoDetails}{videoId} // '') ne $videoID)) {

0 commit comments

Comments
 (0)