aboutsummaryrefslogtreecommitdiffstats
path: root/lib/WWW/FairViewer.pm
diff options
context:
space:
mode:
authortrizen <trizen@protonmail.com>2020-11-05 14:59:10 +0200
committerJesús <heckyel@hyperbola.info>2020-11-09 17:44:19 -0500
commit2aa746dbbb8d775f7acc49cd79c3464887e955ce (patch)
tree52e1f3885c959d3ec75e67d1b072a201d6469aa2 /lib/WWW/FairViewer.pm
parentf141f51a9613c9d74680b1c9eb923ca7f20f901b (diff)
downloadfair-viewer-2aa746dbbb8d775f7acc49cd79c3464887e955ce.tar.lz
fair-viewer-2aa746dbbb8d775f7acc49cd79c3464887e955ce.tar.xz
fair-viewer-2aa746dbbb8d775f7acc49cd79c3464887e955ce.zip
Invidious no longer includes the health status for instances. (bug?)
Signed-off-by: Jesús <heckyel@hyperbola.info>
Diffstat (limited to 'lib/WWW/FairViewer.pm')
-rw-r--r--lib/WWW/FairViewer.pm19
1 files changed, 8 insertions, 11 deletions
diff --git a/lib/WWW/FairViewer.pm b/lib/WWW/FairViewer.pm
index bc01669..8a978d4 100644
--- a/lib/WWW/FairViewer.pm
+++ b/lib/WWW/FairViewer.pm
@@ -557,27 +557,24 @@ sub select_good_invidious_instances {
my %ignored = (
'yewtu.be' => 1,
'invidious.tube' => 1,
- 'invidiou.site' => 1,
+ 'invidiou.site' => 0,
'invidious.xyz' => 1,
'vid.mint.lgbt' => 1,
'invidious.ggc-project.de' => 1,
'invidious.toot.koeln' => 1,
'invidious.kavin.rocks' => 0,
- 'invidious.snopyta.org' => 0,
+ 'invidious.snopyta.org' => 1,
);
+#<<<
my @candidates =
grep { not $ignored{$_->[0]} }
- grep {
- $args{lax} ? 1 : eval { $_->[1]{monitor}{dailyRatios}[0]{label} eq 'success' }
- }
- grep {
- $args{lax} ? 1 : eval { $_->[1]{monitor}{weeklyRatio}{label} eq 'success' }
- }
- grep {
- $args{lax} ? 1 : eval { $_->[1]{monitor}{statusClass} eq 'success' }
- }
+ #~ grep { $args{lax} ? 1 : eval { lc($_->[1]{monitor}{dailyRatios}[0]{label} // '') eq 'success' } }
+ #~ grep { $args{lax} ? 1 : eval { lc($_->[1]{monitor}{weeklyRatio}{label} // '') eq 'success' } }
+ #~ grep { $args{lax} ? 1 : eval { lc($_->[1]{monitor}{statusClass} // '') eq 'success' } }
+ #~ grep { $args{lax} ? 1 : !exists($_->[1]{stats}{error}) }
grep { lc($_->[1]{type} // '') eq 'https' } @$instances;
+#>>>
if ($self->get_debug) {