From 2aa746dbbb8d775f7acc49cd79c3464887e955ce Mon Sep 17 00:00:00 2001 From: trizen Date: Thu, 5 Nov 2020 14:59:10 +0200 Subject: Invidious no longer includes the health status for instances. (bug?) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jesús --- lib/WWW/FairViewer.pm | 19 ++++++++----------- 1 file 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) { -- cgit v1.2.3