summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Busby <contact@benbusby.com>2022-07-27 17:14:15 -0600
committerBen Busby <contact@benbusby.com>2022-07-27 17:14:15 -0600
commit8fbe016cdba8ac2fea8523021ae57f4b8167fa35 (patch)
tree7a9345428867228eb39b7067c936388cafc4475d
parentbf59789c452b2d8cd2fc8b16229c6f81e6bade6d (diff)
downloadfarside-8fbe016cdba8ac2fea8523021ae57f4b8167fa35.tar.gz
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
-rw-r--r--lib/farside.ex6
-rw-r--r--services-full.json27
-rw-r--r--services.json26
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"
+ ]
}
]