From 76bf4687e70cc573ed4bb82fbdaa030d7b9e4d25 Mon Sep 17 00:00:00 2001 From: trizen Date: Mon, 5 Oct 2020 13:14:38 +0300 Subject: Implemented support for popular videos. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jesús --- lib/WWW/FairViewer.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/WWW/FairViewer.pm') diff --git a/lib/WWW/FairViewer.pm b/lib/WWW/FairViewer.pm index 85c5e18..d7be54c 100644 --- a/lib/WWW/FairViewer.pm +++ b/lib/WWW/FairViewer.pm @@ -469,6 +469,9 @@ sub lwp_get { return $self->lwp_get($url, %opt, depth => $opt{depth} + 1); } + # Too many errors. Pick another invidious instance. + $self->pick_and_set_random_instance(); + _warn_reponse_error($response, $url); return; } @@ -681,6 +684,7 @@ sub default_arguments { sub _make_feed_url { my ($self, $path, %args) = @_; + my $extra_args = $self->default_arguments(%args); my $url = $self->get_api_url . $path; -- cgit v1.2.3