diff options
author | BobIsMyManager <bobismymanager@noreply.codeberg.org> | 2022-08-03 00:05:49 +0200 |
---|---|---|
committer | BobIsMyManager <bobismymanager@noreply.codeberg.org> | 2022-08-03 00:05:49 +0200 |
commit | 449cd43aec71c914fda31582fd38b56580e20948 (patch) | |
tree | 9e945576147d04da169a3fd59e1b46c041cc2055 /src/instances | |
parent | Unify won't save in storage anymore. Fixed Piped Unify (diff) | |
parent | Fix simplytranslate and make things prettier (diff) | |
download | libredirect-449cd43aec71c914fda31582fd38b56580e20948.zip |
Merge pull request 'Latency threshold and offline instances' (https://codeberg.org/LibRedirect/libredirect/pulls/14) from latency into master
Reviewed-on: https://codeberg.org/LibRedirect/libredirect/pulls/14
Diffstat (limited to 'src/instances')
-rw-r--r-- | src/instances/blacklist.json | 4 | ||||
-rw-r--r-- | src/instances/data.json | 13 | ||||
-rw-r--r-- | src/instances/get_instances.py | 2 |
3 files changed, 8 insertions, 11 deletions
diff --git a/src/instances/blacklist.json b/src/instances/blacklist.json index 221058ee..e7756f8e 100644 --- a/src/instances/blacklist.json +++ b/src/instances/blacklist.json @@ -4,9 +4,8 @@ "https://piped.kavin.rocks", "https://piped.tokhmi.xyz", "https://piped.moomoo.me", - "https://piped.syncpundit.com", "https://piped.mha.fi", - "https://jp-piped.shimul.me", + "https://de-piped.shimul.me", "https://pipedus.palash.dev", "https://piped.waffle.wiki", "https://watch.whatever.social", @@ -68,7 +67,6 @@ "https://jsearch.pw", "https://searx.gnu.style", "https://searx.semipvt.com", - "https://searx.vanwa.tech", "https://etsi.me", "https://s.zhaocloud.net", "https://search.vidhukant.xyz", diff --git a/src/instances/data.json b/src/instances/data.json index c5334a47..3e82842c 100644 --- a/src/instances/data.json +++ b/src/instances/data.json @@ -12,6 +12,7 @@ "https://invidious.sethforprivacy.com", "https://invidious.tiekoetter.com", "https://inv.bp.projectsegfau.lt", + "https://invidious.projectsegfau.lt", "https://inv.vern.cc", "https://invidious.nerdvpn.de", "https://inv.privacy.com.de", @@ -19,7 +20,6 @@ "https://youtube.076.ne.jp", "https://invidious.weblibre.org", "https://invidious.snopyta.org", - "https://invidious.projectsegfau.lt", "https://invidious.esmailelbob.xyz", "https://invidious.namazso.eu" ], @@ -43,13 +43,13 @@ "https://piped.tokhmi.xyz", "https://piped.moomoo.me", "https://il.ax", - "https://piped.syncpundit.com", "https://piped.mha.fi", - "https://jp-piped.shimul.me", + "https://de-piped.shimul.me", "https://pipedus.palash.dev", "https://piped.waffle.wiki", "https://watch.whatever.social", "https://yt.jae.fi", + "https://piped.mint.lgbt", "https://piped.esmailelbob.xyz", "https://piped.projectsegfau.lt" ], @@ -501,7 +501,6 @@ "https://searx.tuxcloud.net", "https://searx.tyil.nl", "https://searx.vanwa.tech", - "https://searx.vimproved.me", "https://searx.webheberg.info", "https://searx.xyz", "https://searx.zapashcanon.fr", @@ -519,8 +518,7 @@ "http://yra4tke2pwcnatxjkufpw6kvebu3h3ti2jca2lcdpgx3mpwol326lzid.onion", "http://z5vawdol25vrmorm4yydmohsd4u6rdoj2sylvoi3e3nqvxkvpqul7bqd.onion", "http://zbuc3bbzbfdqqo2x46repx2ddajbha6fpsjeeptjhhhhzji3zopxdqyd.onion", - "http://f4qfqajszpx5b7itzxt6mb7kj4ktpgbdq7lq6xaiqyqx6a7de3epptad.onion", - "http://searx.micohauwkjbyw5meacrb4ipicwvwg4xtzl7y7viv53kig2mdcsvwkyyd.onion" + "http://f4qfqajszpx5b7itzxt6mb7kj4ktpgbdq7lq6xaiqyqx6a7de3epptad.onion" ], "i2p": [ "http://ransack.i2p", @@ -582,6 +580,7 @@ "https://searx.sev.monster", "https://searx.slipfox.xyz/searx", "https://searx.tiekoetter.com", + "https://searx.vimproved.me", "https://searx.zcyph.cc", "https://searxng.au/searx", "https://searxng.tordenskjold.de", @@ -603,6 +602,7 @@ "http://searchoorwalty5a2ailrboa2asqyts2u7bdoqwnjefpgjobpvtzn4qd.onion", "http://gbat2pbpg7ys3fi3pbp64667tt5x66mg45xok35bxdw7v55brm7a27yd.onion", "http://searxdr3pqz4nydgnqocsia2xbywptxbkympa2emn7zlgggrir4bkfad.onion", + "http://searx.micohauwkjbyw5meacrb4ipicwvwg4xtzl7y7viv53kig2mdcsvwkyyd.onion", "http://searx.privpw3tndpkw6pnp3g727zfgfdzbu3k6a7chv226s3xymv2p4eiuqyd.onion", "http://rq2w52kyrif3xpfihkgjnhqm3a5aqhoikpv72z3drpjglfzc2wr5z4yd.onion", "http://fub6vgedgeadlu3ctskrpkcqjruh76tckwtj5swfhyblgml2tzgzckqd.onion/searx", @@ -820,7 +820,6 @@ "https://tube-enseignement-professionnel.apps.education.fr", "https://socpeertube.ru", "https://videos.laliguepaysdelaloire.org", - "https://videotube.duckdns.org", "https://quantube.win", "https://twctube.twc-zone.eu", "https://vhs.absturztau.be", diff --git a/src/instances/get_instances.py b/src/instances/get_instances.py index 07adbceb..eab4a924 100644 --- a/src/instances/get_instances.py +++ b/src/instances/get_instances.py @@ -92,7 +92,7 @@ def is_authenticate(url): def is_offline(url): try: r = requests.get(url, timeout=5) - if r.status_code != 200: + if r.status_code >= 400: print(url + ' is ' + Fore.RED + 'offline' + Style.RESET_ALL) print("Status code") print(r.status_code) |