1
0
Fork 0
mirror of https://github.com/benbusby/farside.git synced 2025-04-25 13:10:02 +00:00

Manually clear out dead bibliogram instances

Also removes bibliogram from the auto-updater

Bibliogram is discontinued, and many instances are going offline as a
result. This clears out the ones that have already been deactivated, but
the better solution would probably be to stop supporting bibliogram.
This commit is contained in:
Ben Busby 2022-09-15 11:19:18 -06:00
parent 4f18793048
commit b901d8a69c
No known key found for this signature in database
GPG key ID: B9B7231E01D924A1
3 changed files with 18 additions and 27 deletions

View file

@ -37,19 +37,22 @@ jobs:
# ==============================================================
# Bibliogram update
# NOTE: Bibliogram has been discontinued and the official instance
# at bibliogram.art is no longer around. Unless a new "official"
# instance pops up, Bibliogram will likely be removed from farside
# ==============================================================
curl -s https://bibliogram.art/api/instances | \
jq '[
.data |
.[] |
select(.onion_site | not) |
.address
] | sort' > bibliogram-tmp.json
jq --slurpfile bibliogram bibliogram-tmp.json \
'( .[] | select(.type == "bibliogram") )
.instances |= $bibliogram[0]' services-full.json > services-tmp.json
#curl -s https://bibliogram.art/api/instances | \
#jq '[
#.data |
#.[] |
#select(.onion_site | not) |
#.address
#] | sort' > bibliogram-tmp.json
#jq --slurpfile bibliogram bibliogram-tmp.json \
#'( .[] | select(.type == "bibliogram") )
#.instances |= $bibliogram[0]' services-full.json > services-tmp.json
apply_update
#apply_update
# ==============================================================
# searx update