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

Replace libreddit w/ redlib, remove teddit

Teddit is no longer maintained

Libreddit has been forked to redlib, which seems to be actively trying
to work around the changes to Reddit's API.

Libreddit instances are now a mirror of redlib instances for the time
being.
This commit is contained in:
Ben Busby 2024-01-08 11:32:59 -07:00
parent 0830ee5a3d
commit 4f60a39d7f
No known key found for this signature in database
GPG key ID: B9B7231E01D924A1
4 changed files with 66 additions and 117 deletions

View file

@ -161,18 +161,19 @@ jobs:
# ==============================================================
# teddit update
# Note: no longer maintained
# ==============================================================
curl -s https://codeberg.org/teddit/teddit/raw/branch/main/instances.json | \
jq '[
.[] |
select(.url | contains("https")) |
.url ] |
sort' > teddit-tmp.json
jq --slurpfile teddit teddit-tmp.json \
'( .[] | select(.type == "teddit") )
.instances |= $teddit[0]' services-full.json > services-tmp.json
#curl -s https://codeberg.org/teddit/teddit/raw/branch/main/instances.json | \
#jq '[
#.[] |
#select(.url | contains("https")) |
#.url ] |
#sort' > teddit-tmp.json
#jq --slurpfile teddit teddit-tmp.json \
#'( .[] | select(.type == "teddit") )
#.instances |= $teddit[0]' services-full.json > services-tmp.json
apply_update
#apply_update
# ==============================================================
# Wikiless update
@ -191,18 +192,25 @@ jobs:
#apply_update
# ==============================================================
# libreddit update
# libreddit + redlib update
# ==============================================================
curl -s https://raw.githubusercontent.com/libreddit/libreddit-instances/master/instances.json | \
curl -s https://raw.githubusercontent.com/redlib-org/redlib-instances/main/instances.json | \
jq '[
.instances[] |
select(.url) |
.url ] |
sort' > libreddit-tmp.json
jq --slurpfile libreddit libreddit-tmp.json \
'( .[] | select(.type == "libreddit") )
.instances |= $libreddit[0]' services-full.json > services-tmp.json
mv services-tmp.json services-full.json
jq --slurpfile redlib libreddit-tmp.json \
'( .[] | select(.type == "redlib") )
.instances |= $redlib[0]' services-full.json > services-tmp.json
apply_update
# ==============================================================