From 8fbe016cdba8ac2fea8523021ae57f4b8167fa35 Mon Sep 17 00:00:00 2001 From: Ben Busby Date: Wed, 27 Jul 2022 17:14:15 -0600 Subject: [PATCH] Support libremdb and querte (imdb and quora alts) Includes support for redirecting via full url, ie: -> farside.link/https://www.imdb.com/title/tt0133093/ will redirect to a libremdb instance. Closes #48 --- lib/farside.ex | 6 +++++- services-full.json | 27 +++++++++++++++++++++++++++ services.json | 26 +++++++++++++++++++++++++- 3 files changed, 57 insertions(+), 2 deletions(-) diff --git a/lib/farside.ex b/lib/farside.ex index cdfe08f..6e6e7e6 100644 --- a/lib/farside.ex +++ b/lib/farside.ex @@ -16,6 +16,8 @@ defmodule Farside do @imgur_regex ~r/imgur.com|rimgo/ @gtranslate_regex ~r/translate.google.com|lingva/ @tiktok_regex ~r/tiktok.com|proxitok/ + @imdb_regex ~r/imdb.com|libremdb/ + @quora_regex ~r/quora.com|querte/ @parent_services %{ @youtube_regex => ["invidious", "piped"], @@ -27,7 +29,9 @@ defmodule Farside do @odysee_regex => ["librarian"], @imgur_regex => ["rimgo"], @gtranslate_regex => ["lingva"], - @tiktok_regex => ["proxitok"] + @tiktok_regex => ["proxitok"], + @imdb_regex => ["libremdb"], + @quora_regex => ["querte"] } def get_services_map do diff --git a/services-full.json b/services-full.json index 1ea2cae..69cca5b 100644 --- a/services-full.json +++ b/services-full.json @@ -363,5 +363,32 @@ "https://search.funami.tech", "https://librex.catalyst.sx" ] + }, + { + "type": "querte", + "test_url": "/How-does-the-Z-boson-decay", + "fallback": "https://quetre.herokuapp.com", + "instances": [ + "https://quetre.herokuapp.com", + "https://quora.vern.cc", + "https://quetre.pussthecat.org", + "https://wuetre.herokuapp.com", + "https://quetreus.herokuapp.com", + "https://quetre.tokhmi.xyz", + "https://quetre.projectsegfau.lt", + "https://quetre.esmailelbob.xyz" + ] + }, + { + "type": "libremdb", + "test_url": "/title/tt0133093/", + "fallback": "https://libremdb.herokuapp.com", + "instances": [ + "https://libremdb.herokuapp.com", + "https://libremdb.pussthecat.org", + "https://libremdbeu.herokuapp.com", + "https://lmdb.tokhmi.xyz", + "https://libremdb.esmailelbob.xyz" + ] } ] diff --git a/services.json b/services.json index 49d796a..827a61a 100644 --- a/services.json +++ b/services.json @@ -233,7 +233,6 @@ "https://searx.sev.monster", "https://searx.slipfox.xyz/searx", "https://searx.tiekoetter.com", - "https://searx.vimproved.me", "https://searx.youshitsune.me", "https://searxng.tordenskjold.de", "https://serx.ml", @@ -287,5 +286,30 @@ "https://librex.beparanoid.de", "https://search.davidovski.xyz" ] + }, + { + "type": "querte", + "test_url": "/How-does-the-Z-boson-decay", + "fallback": "https://quetre.herokuapp.com", + "instances": [ + "https://quetre.herokuapp.com", + "https://quora.vern.cc", + "https://quetre.pussthecat.org", + "https://wuetre.herokuapp.com", + "https://quetreus.herokuapp.com", + "https://quetre.projectsegfau.lt", + "https://quetre.esmailelbob.xyz" + ] + }, + { + "type": "libremdb", + "test_url": "/title/tt0133093/", + "fallback": "https://libremdb.herokuapp.com", + "instances": [ + "https://libremdb.herokuapp.com", + "https://libremdb.pussthecat.org", + "https://libremdbeu.herokuapp.com", + "https://libremdb.esmailelbob.xyz" + ] } ]