summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsian1468 <58017832+sian1468@users.noreply.github.com>2023-09-14 02:53:05 +0700
committerGitHub <noreply@github.com>2023-09-13 13:53:05 -0600
commit4a655c75803b0c53406d130773c4c4ef7d19d42a (patch)
treeb08f33305084a60ded52d93121d6641dca60cc27
parentfc4d7d5136539197f4fc165392339c89e94049eb (diff)
downloadfarside-4a655c75803b0c53406d130773c4c4ef7d19d42a.tar.gz
Add librey support (#133)
Co-authored-by: Ben Busby <contact@benbusby.com>
-rw-r--r--.github/workflows/update-instances.yml16
-rw-r--r--services-full.json25
-rw-r--r--services.json25
3 files changed, 66 insertions, 0 deletions
diff --git a/.github/workflows/update-instances.yml b/.github/workflows/update-instances.yml
index 5f5a98a..3590c1c 100644
--- a/.github/workflows/update-instances.yml
+++ b/.github/workflows/update-instances.yml
@@ -262,6 +262,22 @@ jobs:
apply_update
# ==============================================================
+ # librey update
+ # ==============================================================
+ curl -s https://raw.githubusercontent.com/Ahwxorg/LibreY/main/instances.json | \
+ jq '[
+ .instances |
+ .[] |
+ select(.librey == true) |
+ .clearnet] |
+ sort' > librey-tmp.json
+ jq --slurpfile librey librey-tmp.json \
+ '( .[] | select(.type == "librey") )
+ .instances |= $librey[0]' services-full.json > services-tmp.json
+
+ apply_update
+
+ # ==============================================================
# TODO: Update instances for other services
# ==============================================================
diff --git a/services-full.json b/services-full.json
index 92a8ac4..8606f83 100644
--- a/services-full.json
+++ b/services-full.json
@@ -598,5 +598,30 @@
"https://4get.silly.computer",
"https://4get.cynic.moe"
]
+ },
+ {
+ "type": "librey",
+ "test_url": "/search.php?q=<%=query%>",
+ "fallback": "https://search.ahwx.org",
+ "instances": [
+ "https://librex.me",
+ "https://librex.nohost.network",
+ "https://librex.retro-hax.net",
+ "https://librex.revvy.de",
+ "https://librex.yogeshlamichhane.com.np",
+ "https://librex.zzls.xyz",
+ "https://librey.baczek.me",
+ "https://librey.bloatcat.tk/",
+ "https://librey.org",
+ "https://librey.spaceint.fr",
+ "https://lx.benike.me",
+ "https://lx.vern.cc",
+ "https://search.ahwx.org",
+ "https://search.davidovski.xyz",
+ "https://search.funami.tech",
+ "https://search.pabloferreiro.es",
+ "https://search.ratakor.com",
+ "https://search2.ahwx.org"
+ ]
}
]
diff --git a/services.json b/services.json
index f96807e..1cb559d 100644
--- a/services.json
+++ b/services.json
@@ -555,5 +555,30 @@
"https://4get.silly.computer",
"https://4get.cynic.moe"
]
+ },
+ {
+ "type": "librey",
+ "test_url": "/search.php?q=<%=query%>",
+ "fallback": "https://search.ahwx.org",
+ "instances": [
+ "https://librex.me",
+ "https://librex.nohost.network",
+ "https://librex.retro-hax.net",
+ "https://librex.revvy.de",
+ "https://librex.yogeshlamichhane.com.np",
+ "https://librex.zzls.xyz",
+ "https://librey.baczek.me",
+ "https://librey.bloatcat.tk/",
+ "https://librey.org",
+ "https://librey.spaceint.fr",
+ "https://lx.benike.me",
+ "https://lx.vern.cc",
+ "https://search.ahwx.org",
+ "https://search.davidovski.xyz",
+ "https://search.funami.tech",
+ "https://search.pabloferreiro.es",
+ "https://search.ratakor.com",
+ "https://search2.ahwx.org"
+ ]
}
]