From 2b36daf98cc27fafc1a980f7d8d1f1e5d38a75a7 Mon Sep 17 00:00:00 2001 From: trizen Date: Thu, 5 Nov 2020 15:10:02 +0200 Subject: Health status of invidious instances is back. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jesús --- lib/WWW/FairViewer.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/WWW/FairViewer.pm b/lib/WWW/FairViewer.pm index 8a978d4..dd867b5 100644 --- a/lib/WWW/FairViewer.pm +++ b/lib/WWW/FairViewer.pm @@ -569,9 +569,9 @@ sub select_good_invidious_instances { #<<< my @candidates = grep { not $ignored{$_->[0]} } - #~ 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 : 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; #>>> -- cgit v1.2.3