update spaces json from API

* paginated, append `&from=$FROM` and repeat until "null"

    SPACE='!IdUUdKALNzBLKEjvbP:matrix.org'
    URL="https://freedombox.emorrp1.name/_matrix/client/unstable/org.matrix.msc2946/rooms/$SPACE/hierarchy?access_token=$TOKEN"
    FROM=$(curl "$URL" | tee -a hierarchy.json | jq -r .next_batch); echo $FROM
    jq -s 'map(.rooms) | add' hierarchy.json > libregamingspaces.json
This commit is contained in:
Phil Morrell 2022-02-12 14:18:23 +00:00
parent 9fc2bcc671
commit f103ce8649
Signed by: emorrp1
GPG Key ID: DBCA65091F248E6C
1 changed files with 3263 additions and 550 deletions

File diff suppressed because it is too large Load Diff