diff options
author | trizen <trizen@protonmail.com> | 2020-09-08 12:34:33 +0300 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2020-09-14 10:57:39 -0500 |
commit | c3a31d1d1adb8168f1d1e87d0c78362504ea66fd (patch) | |
tree | 442842e3628b8fc6295da75bdf3fa3a9bc07739e | |
parent | 91661e15a787515bdeaf8fe383dcbd523a2c7760 (diff) | |
download | fair-viewer-c3a31d1d1adb8168f1d1e87d0c78362504ea66fd.tar.lz fair-viewer-c3a31d1d1adb8168f1d1e87d0c78362504ea66fd.tar.xz fair-viewer-c3a31d1d1adb8168f1d1e87d0c78362504ea66fd.zip |
With `--api=auto`, ignore "invidious.snopyta.org". Seems to be too slow.
Signed-off-by: Jesús <heckyel@hyperbola.info>
-rw-r--r-- | lib/WWW/FairViewer.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/WWW/FairViewer.pm b/lib/WWW/FairViewer.pm index 59307d5..4c77131 100644 --- a/lib/WWW/FairViewer.pm +++ b/lib/WWW/FairViewer.pm @@ -102,8 +102,10 @@ my %valid_options = ( video_info_args => {valid => q[], default => '?video_id=%s&el=detailpage&ps=default&eurl=&gl=US&hl=en'}, www_content_type => {valid => q[], default => 'application/x-www-form-urlencoded'}, +#<<< # LWP user agent - lwp_agent => {valid => [qr/^.{5}/], default => 'Mozilla/5.0 (X11; U; Linux i686; gzip; en-US) Chrome/10.0.648.45'}, + lwp_agent => {valid => [qr/^.{5}/], default => 'Mozilla/5.0 (Windows NT 10.0; Win64; gzip; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.0.0 Safari/537.36'}, +#>>> ); sub _our_smartmatch { @@ -538,6 +540,7 @@ sub pick_random_instance { 'invidious.xyz' => 1, 'vid.mint.lgbt' => 1, 'invidious.ggc-project.de' => 1, + 'invidious.snopyta.org' => 1, # too popular == too slow ); my @candidates = |