Add auto update for librex

This commit is contained in:
sian1468 2023-09-10 13:05:05 +07:00
parent 6385dca3f6
commit 943c3c3141
No known key found for this signature in database
GPG Key ID: 7DBCA5E9B2E932EB
3 changed files with 18 additions and 2 deletions

View File

@ -245,6 +245,22 @@ jobs:
apply_update
# ==============================================================
# librex update
# ==============================================================
curl -s https://raw.githubusercontent.com/Ahwxorg/LibreY/main/instances.json | \
jq '[
.instances |
.[] |
select(.librey|not) |
.clearnet] |
sort' > librex-tmp.json
jq --slurpfile librex librex-tmp.json \
'( .[] | select(.type == "librex") )
.instances |= $librex[0]' services-full.json > services-tmp.json
apply_update
# ==============================================================
# TODO: Update instances for other services
# ==============================================================

View File

@ -456,7 +456,7 @@
{
"type": "librex",
"test_url": "/search.php?q=<%=query%>",
"fallback": "https://search.femboy.hu",
"fallback": "https://librex.myroware.eu",
"instances": [
"https://search.femboy.hu",
"https://lx.vern.cc",

View File

@ -421,7 +421,7 @@
{
"type": "librex",
"test_url": "/search.php?q=<%=query%>",
"fallback": "https://search.femboy.hu",
"fallback": "https://librex.myroware.eu",
"instances": [
"https://search.femboy.hu",
"https://lx.vern.cc",