summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/update-instances.yml25
-rw-r--r--services.json41
2 files changed, 60 insertions, 6 deletions
diff --git a/.github/workflows/update-instances.yml b/.github/workflows/update-instances.yml
index 6fe6f77..aefba6f 100644
--- a/.github/workflows/update-instances.yml
+++ b/.github/workflows/update-instances.yml
@@ -1,7 +1,7 @@
on:
schedule:
- cron: '0 0 * * *'
-
+
jobs:
update-instances:
runs-on: ubuntu-latest
@@ -25,7 +25,7 @@ jobs:
# Ensure no trailing slashes for any instance
sed -i 's/\/"/"/g' services.json
}
-
+
# ==============================================================
# Git config
# ==============================================================
@@ -33,7 +33,7 @@ jobs:
git config --global user.email 41898282+github-actions[bot]@users.noreply.github.com
git remote set-url origin git@github.com:benbusby/farside.git
git checkout main
-
+
# ==============================================================
# Searx update
# ==============================================================
@@ -52,7 +52,7 @@ jobs:
select(.value.html.grade == "V" or .value.html.grade == "F") |
.key
] | sort' > searx-tmp.json
-
+
cat searx-tmp.json | jq .
jq --slurpfile searx searx-tmp.json \
@@ -60,11 +60,24 @@ jobs:
.instances |= $searx[0]' services.json > services-tmp.json
apply_update
-
+
+ # ==============================================================
+ # Simply Translate update
+ # ==============================================================
+ curl -s https://simple-web.org/instances/simplytranslate | sort > st-out
+ sed -i -e 's/^/https:\/\//' st-out
+ jq -ncR '[inputs]' <<< "$(cat st-out)" > st-tmp.json
+
+ jq --slurpfile simplytranslate st-tmp.json \
+ '( .[] | select(.type == "simplytranslate") )
+ .instances |= $simplytranslate[0]' services.json > services-tmp.json
+
+ apply_update
+
# ==============================================================
# TODO: Update instances for other services
# ==============================================================
-
+
# ==============================================================
# Push changes
# ==============================================================
diff --git a/services.json b/services.json
index fef052e..1eafffd 100644
--- a/services.json
+++ b/services.json
@@ -35,6 +35,27 @@
]
},
{
+ "type": "teddit",
+ "test_url": "/r/popular",
+ "fallback": "https://teddit.net",
+ "instances": [
+ "https://teddit.ggc-project.de",
+ "https://teddit.kavin.rocks",
+ "https://teddit.zaggy.nl",
+ "https://teddit.namazso.eu",
+ "https://teddit.nautolan.racing",
+ "https://teddit.tinfoil-hat.net",
+ "https://teddit.domain.glass",
+ "https://snoo.ioens.is",
+ "https://teddit.httpjames.space",
+ "https://teddit.alefvanoon.xyz",
+ "https://incogsnoo.com",
+ "https://teddit.pussthecat.org",
+ "https://reddit.lol",
+ "https://teddit.sethforprivacy.com"
+ ]
+ },
+ {
"type": "bibliogram",
"test_url": "/u/officialrickastley",
"fallback": "https://bibliogram.art",
@@ -70,6 +91,14 @@
]
},
{
+ "type": "piped",
+ "test_url": "/watch?v=eBGIQ7ZuuiU",
+ "fallback": "https://piped.kavin.rocks",
+ "instances": [
+ "https://piped.kavin.rocks"
+ ]
+ },
+ {
"type": "nitter",
"test_url": "/twitter",
"fallback": "https://nitter.net",
@@ -123,6 +152,18 @@
]
},
{
+ "type": "simplytranslate",
+ "test_url": "/?engine=google&text=simplicado",
+ "fallback": "https://simplytranslate.org",
+ "instances": [
+ "https://simplytranslate.org",
+ "https://st.alefvanoon.xyz",
+ "https://translate.josias.dev",
+ "https://translate.namazso.eu",
+ "https://translate.riverside.rocks"
+ ]
+ },
+ {
"type": "whoogle",
"test_url": "/search?cookies_disabled=1&q=<%=query%>",
"fallback": "https://whoogle.fossho.st",