1
0
Fork 0
mirror of https://github.com/benbusby/farside.git synced 2025-04-20 10:58:42 +00:00

Auto update list of invidious instances

Adds Invidious to the auto-update nightly CI build

Closes #12
This commit is contained in:
Ben Busby 2022-01-26 16:11:46 -07:00 committed by GitHub
parent ae5d4a4c03
commit 7cb19579c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -86,6 +86,21 @@ jobs:
apply_update apply_update
# ==============================================================
# Invidious update
# ==============================================================
curl -s https://api.invidious.io/instances.json | \
jq '[
.[] |
select(.[1].type | contains("https")) ] |
[.[][1].uri] |
sort' > invidious-tmp.json
jq --slurpfile invidious invidious-tmp.json \
'( .[] | select(.type == "invidious") )
.instances |= $invidious[0]' services.json > services-tmp.json
apply_update
# ============================================================== # ==============================================================
# TODO: Update instances for other services # TODO: Update instances for other services
# ============================================================== # ==============================================================