From 02549864825adf1acea63254d1837c86963f7890 Mon Sep 17 00:00:00 2001 From: trizen Date: Tue, 21 Jan 2025 18:16:06 +0200 Subject: [PATCH] Version 0.5.4 --- Changes | 7 +++++++ README.md | 2 +- bin/gtk-pipe-viewer | 6 +++--- bin/pipe-viewer | 8 ++++---- lib/WWW/PipeViewer.pm | 10 +++++----- share/gtk-pipe-viewer.glade | 6 +++--- 6 files changed, 23 insertions(+), 16 deletions(-) diff --git a/Changes b/Changes index 4e83c72..cfa8ac5 100644 --- a/Changes +++ b/Changes @@ -5,6 +5,13 @@ [CHANGELOG] +Version 0.5.4 + +- CLI: added the config-options `download_in_subdir` and `download_in_subdir_format`. +- CLI: added the --set-mtime option and the `set_mtime` config-option. +- CLI: normalize the filename after applying the formatting. +- GUI: fixed a looping issue when `prefer_invidious` is set to `1` and there is no working instance available. + Version 0.5.3 - Fixed the "CONSENT" cookie (which no longer worked due to YouTube changes). diff --git a/README.md b/README.md index d43c71d..8fb2fb7 100644 --- a/README.md +++ b/README.md @@ -153,7 +153,7 @@ After installing, you can find documentation with the following commands: ### LICENSE AND COPYRIGHT -Copyright (C) 2012-2024 Trizen +Copyright (C) 2012-2025 Trizen This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published diff --git a/bin/gtk-pipe-viewer b/bin/gtk-pipe-viewer index 47e8fac..729cf6d 100755 --- a/bin/gtk-pipe-viewer +++ b/bin/gtk-pipe-viewer @@ -1,6 +1,6 @@ #!/usr/bin/perl -# Copyright (C) 2010-2024 Trizen . +# Copyright (C) 2010-2025 Trizen . # # This program is free software; you can redistribute it and/or modify it # under the terms of either: the GNU General Public License as published @@ -15,7 +15,7 @@ #------------------------------------------------------- # GTK Pipe Viewer # Fork: 30 October 2020 -# Edit: 11 August 2024 +# Edit: 21 January 2025 # https://github.com/trizen/pipe-viewer #------------------------------------------------------- @@ -50,7 +50,7 @@ sub devel_path { use if $DEVEL, lib => $DEVEL && catdir(devel_path(), 'lib'); -use WWW::PipeViewer v0.5.3; +use WWW::PipeViewer v0.5.4; use WWW::PipeViewer::DiskCache; use WWW::PipeViewer::ParseJSON; use WWW::PipeViewer::RegularExpressions; diff --git a/bin/pipe-viewer b/bin/pipe-viewer index bd14b87..0b97a96 100755 --- a/bin/pipe-viewer +++ b/bin/pipe-viewer @@ -1,6 +1,6 @@ #!/usr/bin/perl -# Copyright (C) 2010-2024 Trizen . +# Copyright (C) 2010-2025 Trizen . # # This program is free software; you can redistribute it and/or modify it # under the terms of either: the GNU General Public License as published @@ -15,7 +15,7 @@ #------------------------------------------------------- # pipe-viewer # Fork: 30 October 2020 -# Edit: 25 August 2024 +# Edit: 21 January 2025 # https://github.com/trizen/pipe-viewer #------------------------------------------------------- @@ -66,7 +66,7 @@ sub devel_path { use if $DEVEL, lib => $DEVEL && catdir(devel_path(), 'lib'); -use WWW::PipeViewer v0.5.3; +use WWW::PipeViewer v0.5.4; use WWW::PipeViewer::ParseJSON; use WWW::PipeViewer::RegularExpressions; @@ -5362,7 +5362,7 @@ https://github.com/trizen/pipe-viewer =head1 LICENSE AND COPYRIGHT -Copyright 2010-2024 Trizen. +Copyright 2010-2025 Trizen. This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published diff --git a/lib/WWW/PipeViewer.pm b/lib/WWW/PipeViewer.pm index 00708e8..3f8f8eb 100644 --- a/lib/WWW/PipeViewer.pm +++ b/lib/WWW/PipeViewer.pm @@ -19,9 +19,9 @@ memoize '_get_youtubei_content', SCALAR_CACHE => [HASH => \%youtubei_cache]; #memoize('_get_video_info'); memoize('_ytdl_is_available'); -memoize('_info_from_ytdl'); -memoize('_extract_from_ytdl'); -memoize('_extract_from_invidious'); +#memoize('_info_from_ytdl'); +#memoize('_extract_from_ytdl'); +#memoize('_extract_from_invidious'); use parent qw( WWW::PipeViewer::InitialData @@ -43,7 +43,7 @@ WWW::PipeViewer - A simple interface to YouTube. =cut -our $VERSION = '0.5.3'; +our $VERSION = '0.5.4'; =head1 SYNOPSIS @@ -475,7 +475,7 @@ sub lwp_get { # Too many errors. Pick another invidious instance. if ($url !~ m{(?:\byoutube\.com/|\bi\.ytimg\.com/)}) { - #$self->pick_and_set_random_instance(); + ## $self->pick_and_set_random_instance(); # see #209 } _warn_reponse_error($response, $url); diff --git a/share/gtk-pipe-viewer.glade b/share/gtk-pipe-viewer.glade index 22ba2bc..417e2f8 100644 --- a/share/gtk-pipe-viewer.glade +++ b/share/gtk-pipe-viewer.glade @@ -1,7 +1,7 @@ - + 1 @@ -1451,7 +1451,7 @@ When the specified resolution is not found, the best available resolution is use normal __MAIN__ GTK Pipe Viewer - Copyright © 2010-2024 Trizen + Copyright © 2010-2025 Trizen Written in Perl, Gtk3 and Glade. https://github.com/trizen/pipe-viewer https://github.com/trizen/pipe-viewer