aboutsummaryrefslogtreecommitdiffstats
path: root/lib/WWW/FairViewer.pm
diff options
context:
space:
mode:
authortrizen <trizen@protonmail.com>2020-10-05 13:14:38 +0300
committerJesús <heckyel@hyperbola.info>2020-11-09 16:03:11 -0500
commit76bf4687e70cc573ed4bb82fbdaa030d7b9e4d25 (patch)
tree5150439575f9b7a86c01e0a74908e449952ff726 /lib/WWW/FairViewer.pm
parentbbe5dab9e37a2cd6f25edb09e2949ce7270b3784 (diff)
downloadfair-viewer-76bf4687e70cc573ed4bb82fbdaa030d7b9e4d25.tar.lz
fair-viewer-76bf4687e70cc573ed4bb82fbdaa030d7b9e4d25.tar.xz
fair-viewer-76bf4687e70cc573ed4bb82fbdaa030d7b9e4d25.zip
Implemented support for popular videos.
Signed-off-by: Jesús <heckyel@hyperbola.info>
Diffstat (limited to 'lib/WWW/FairViewer.pm')
-rw-r--r--lib/WWW/FairViewer.pm4
1 files changed, 4 insertions, 0 deletions
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;