diff options
Diffstat (limited to 'lib/WWW/FairViewer.pm')
-rw-r--r-- | lib/WWW/FairViewer.pm | 19 |
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) { |