mirror of
https://github.com/benbusby/farside.git
synced 2025-04-25 13:10:02 +00:00
Poll nitter instances only in nightly build
From the recent changes to twitter/X, it sounds like guest accounts are now required for nitter, which are more easily rate limited. To avoid any impact from Farside, the instances are now health checked in the nightly build using https://status.d420.de (this doesn't seem to be directly associated with the nitter maintainers, so might not be entirely future-proof).
This commit is contained in:
parent
cc1a040991
commit
7e47e9536a
2 changed files with 19 additions and 2 deletions
17
.github/workflows/update-instances.yml
vendored
17
.github/workflows/update-instances.yml
vendored
|
@ -109,6 +109,23 @@ jobs:
|
|||
|
||||
apply_update
|
||||
|
||||
# ==============================================================
|
||||
# Nitter update
|
||||
# ==============================================================
|
||||
curl -s https://status.d420.de/api/v1/instances | \
|
||||
jq '[
|
||||
.hosts |
|
||||
to_entries[] |
|
||||
select(.value.healthy == true) |
|
||||
.value.url ] |
|
||||
sort' > nitter-tmp.json
|
||||
|
||||
jq --slurpfile nitter nitter-tmp.json \
|
||||
'( .[] | select(.type == "nitter") )
|
||||
.instances |= $nitter[0]' services-full.json > services.tmp.json
|
||||
|
||||
apply_update
|
||||
|
||||
# ==============================================================
|
||||
# SimplyTranslate update
|
||||
# ==============================================================
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue