Update from obsidian - thinkpad

Affected files:
.env.example
.obsidian/plugins/obsidian-omnivore/data.json
.utils/igdb.sh
Read Later/Highlighting fold text, community fork of null-ls, leetcode integration, reduce ram usage of LSP ....md
Read Later/Study shows stronger brain activity after writing on paper than on tablet or smartphone - Science....md
Read Later/The Unreasonable Effectiveness Of Plain Text.md
Read Later/Train Your Brain to Be More Creative.md
Read Later/You Don’t Actually Want Open World Games - YouTube.md
games/the-legend-of-zelda-a-link-between-worlds.md
games/the-legend-of-zelda-a-link-to-the-past.md
games/the-legend-of-zelda-breath-of-the-wild.md
games/the-legend-of-zelda-four-swords-adventures.md
games/the-legend-of-zelda-four-swords.md
games/the-legend-of-zelda-link-s-awakening-dx.md
games/the-legend-of-zelda-majora-s-mask.md
games/the-legend-of-zelda-ocarina-of-time.md
games/the-legend-of-zelda-phantom-hourglass.md
games/the-legend-of-zelda-skyward-sword.md
games/the-legend-of-zelda-spirit-tracks.md
games/the-legend-of-zelda-tears-of-the-kingdom.md
games/the-legend-of-zelda-the-minish-cap.md
games/the-legend-of-zelda-the-wind-waker.md
games/the-legend-of-zelda-twilight-princess.md
This commit is contained in:
Alexander Navarro 2023-10-24 11:33:20 -03:00
parent 04703d2398
commit ee28fb3fb7
23 changed files with 939 additions and 17 deletions

View file

@ -18,7 +18,7 @@ source "$root/.env"
if [[ -e /tmp/igdb-login.json ]]; then
token=$(jq -r '.access_token' /tmp/igdb-login.json)
else
login_url="https://id.twitch.tv/oauth2/token?client_id=$CLIENT_ID&client_secret=$CLIENT_SECRET&grant_type=client_credentials"
login_url="https://id.twitch.tv/oauth2/token?client_id=$IGDB_CLIENT_ID&client_secret=$IGDB_CLIENT_SECRET&grant_type=client_credentials"
token=$(curl -s -X POST "$login_url" | tee /tmp/igdb-login.json | jq -r '.access_token')
fi
@ -34,7 +34,7 @@ limit=100
preview=".[{n}] | .first_release_date = (.first_release_date // 0 | strflocaltime(\"%Y-%m-%d\")) | del(.id, .slug, .summary) | walk(if type == \"array\" then map((.name // .company.name)?) else . end )"
line=$(curl -s 'https://api.igdb.com/v4/games' \
-H "Client-ID: $CLIENT_ID" \
-H "Client-ID: $IGDB_CLIENT_ID" \
-H "Authorization: Bearer $token" \
-H 'Accept: application/json' \
-d "search \"$query\"; fields $fields; limit $limit;" | tee /tmp/igdb-query.json |