From d9065e11f11901dcb1f0de2153a856ca89ee268a Mon Sep 17 00:00:00 2001 From: trizen Date: Sat, 11 Jul 2020 00:04:35 +0300 Subject: - Added support for ignoring high frame rate (HFR) videos. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Implemented via the `hfr` config-option. When set to "0", HFR videos will be ignored. Also available as a command-line option: $ fair-viewer --no-hfr By default, `hfr` is set to "1". Signed-off-by: Jesús --- lib/WWW/FairViewer.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/WWW/FairViewer.pm') diff --git a/lib/WWW/FairViewer.pm b/lib/WWW/FairViewer.pm index c67a0e3..89c3c63 100644 --- a/lib/WWW/FairViewer.pm +++ b/lib/WWW/FairViewer.pm @@ -897,9 +897,10 @@ sub get_streaming_urls { my @audio_urls; require WWW::FairViewer::Itags; + state $itags = WWW::FairViewer::Itags::get_itags(); my %audio_itags; - @audio_itags{@{WWW::FairViewer::Itags->get_itags->{audio}}} = (); + @audio_itags{map { $_->{value} } @{$itags->{audio}}} = (); foreach my $url (@streaming_urls) { -- cgit v1.2.3