Add librey support (#133)

Co-authored-by: Ben Busby <contact@benbusby.com>
This commit is contained in:
sian1468 2023-09-14 02:53:05 +07:00 committed by GitHub
parent fc4d7d5136
commit 4a655c7580
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 66 additions and 0 deletions

View File

@ -261,6 +261,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
# ==============================================================

View File

@ -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"
]
}
]

View File

@ -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"
]
}
]