From 4e1e6e86b51d0702a614f512e7d2ecacb37c9346 Mon Sep 17 00:00:00 2001 From: sian1468 <58017832+sian1468@users.noreply.github.com> Date: Sun, 10 Sep 2023 12:56:59 +0700 Subject: [PATCH] Add librey support --- .github/workflows/update-instances.yml | 16 ++++++++++++++++ services-full.json | 25 +++++++++++++++++++++++++ services.json | 25 +++++++++++++++++++++++++ 3 files changed, 66 insertions(+) diff --git a/.github/workflows/update-instances.yml b/.github/workflows/update-instances.yml index c806292..a5e0528 100644 --- a/.github/workflows/update-instances.yml +++ b/.github/workflows/update-instances.yml @@ -245,6 +245,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 86ac8dd..e066cf0 100644 --- a/services-full.json +++ b/services-full.json @@ -595,5 +595,30 @@ "https://4get.ca", "https://4get.zzls.xyz" ] + }, + { + "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 7a87104..af3bd9e 100644 --- a/services.json +++ b/services.json @@ -552,5 +552,30 @@ "https://4get.ca", "https://4get.zzls.xyz" ] + }, + { + "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" + ] } ]