diff options
author | trizen <trizen@protonmail.com> | 2020-07-11 00:04:35 +0300 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2020-07-27 21:17:19 -0500 |
commit | d9065e11f11901dcb1f0de2153a856ca89ee268a (patch) | |
tree | ed8dd4f348cb2d98c48a6664cb84b1318d33782b /lib/WWW/FairViewer.pm | |
parent | 3250552df3554ea8cf8e382e025de1beb1ce2fcb (diff) | |
download | fair-viewer-d9065e11f11901dcb1f0de2153a856ca89ee268a.tar.lz fair-viewer-d9065e11f11901dcb1f0de2153a856ca89ee268a.tar.xz fair-viewer-d9065e11f11901dcb1f0de2153a856ca89ee268a.zip |
- Added support for ignoring high frame rate (HFR) videos.
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 <heckyel@hyperbola.info>
Diffstat (limited to 'lib/WWW/FairViewer.pm')
-rw-r--r-- | lib/WWW/FairViewer.pm | 3 |
1 files changed, 2 insertions, 1 deletions
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) { |