mirror of
https://github.com/benbusby/farside.git
synced 2025-04-19 14:55:50 -04:00
Add auto update for librex (#132)
This commit is contained in:
parent
b549e4bb71
commit
fc4d7d5136
16
.github/workflows/update-instances.yml
vendored
16
.github/workflows/update-instances.yml
vendored
@ -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
|
||||
# ==============================================================
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user