diff options
| author | sian1468 <58017832+sian1468@users.noreply.github.com> | 2023-09-14 02:45:52 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-13 13:45:52 -0600 |
| commit | fc4d7d5136539197f4fc165392339c89e94049eb (patch) | |
| tree | 078dd133d56a5090bef1ca0b1475a088630187bf | |
| parent | b549e4bb7160891159dc495581cce85c2b03b3da (diff) | |
| download | farside-fc4d7d5136539197f4fc165392339c89e94049eb.tar.gz | |
Add auto update for librex (#132)
| -rw-r--r-- | .github/workflows/update-instances.yml | 16 | ||||
| -rw-r--r-- | services-full.json | 2 | ||||
| -rw-r--r-- | services.json | 2 |
3 files changed, 18 insertions, 2 deletions
diff --git a/.github/workflows/update-instances.yml b/.github/workflows/update-instances.yml index c806292..5f5a98a 100644 --- a/.github/workflows/update-instances.yml +++ b/.github/workflows/update-instances.yml @@ -246,6 +246,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 # ============================================================== diff --git a/services-full.json b/services-full.json index 6f17c9d..92a8ac4 100644 --- a/services-full.json +++ b/services-full.json @@ -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", diff --git a/services.json b/services.json index dd9d214..f96807e 100644 --- a/services.json +++ b/services.json @@ -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", |
