Update from obsidian - thinkpad
Affected files: .obsidian/workspace.json .utils/igdb.sh games/batman-arkham-asylum-game-of-the-year-edition.md games/batman-arkham-city.md games/castlevania-symphony-of-the-night.md games/celeste.md games/god-of-war--1.md games/god-of-war-ascension.md games/god-of-war-chains-of-olympus.md games/god-of-war-ghost-of-sparta.md games/god-of-war-ii.md games/god-of-war-iii.md games/god-of-war.md games/hollow-knight.md games/mega-man-x2.md games/metroid-prime-remastered.md games/monster-hunter-rise.md games/nier-automata.md games/persona-4-golden--1.md games/persona-5-royal-launch-edition.md games/persona-5-royal.md games/persona-5.md games/super-mario-galaxy-2.md games/the-elder-scrolls-v-skyrim.md games/the-last-of-us-part-ii.md games/the-last-of-us.md games/the-legend-of-zelda-twilight-princess--1.md games/uncharted-2-among-thieves.md games/uncharted-3-drake-s-deception.md games/uncharted-drake-s-fortune.md notes/thoughts/Design.md projects/games.md
This commit is contained in:
parent
bed375a237
commit
0cc0627d82
32 changed files with 411 additions and 492 deletions
|
|
@ -46,7 +46,7 @@ if [[ -z $line ]]; then
|
|||
exit
|
||||
fi
|
||||
|
||||
filter="{ title: .name, alias: .name, release: .first_release_date | strflocaltime(\"%Y-%m-%d\"), developers: (.involved_companies | map(.company.name) | unique), genres: (.genres | map(.name)), url, status: \"Backlog\", times_played: 0}"
|
||||
filter="{ title: .name, alias: .name, release: .first_release_date | strflocaltime(\"%Y-%m-%d\"), franchises: (if .franchises then .franchises | map(.name) else [\"None\"] end), developers: (.involved_companies | map(.company.name) | unique), genres: (.genres | map(.name)), url, status: \"Backlog\", times_played: 0, registered_hours: 0}"
|
||||
|
||||
# Create frontmatter
|
||||
slug=$(jq --compact-output -r ".[$line] | .slug" /tmp/igdb-query.json)
|
||||
|
|
@ -60,11 +60,13 @@ frontmatter="$frontmatter\n\n## Brief"
|
|||
frontmatter="$frontmatter\n\n> $(jq -r ".[$line] | .summary" /tmp/igdb-query.json)"
|
||||
frontmatter="$frontmatter\n\n## Thoughts"
|
||||
|
||||
if [[ -e "$root/games/$slug" ]]; then
|
||||
file="$root/games/$slug.md"
|
||||
|
||||
if [[ -e "$file" ]]; then
|
||||
echo "File exist, here is the frontmatter to update it:"
|
||||
echo
|
||||
echo -e "$frontmatter"
|
||||
else
|
||||
echo -e "$frontmatter" >"$root/games/$slug.md"
|
||||
echo "file created at: $root/games/$slug"
|
||||
echo -e "$frontmatter" >"$file"
|
||||
echo "file created at: $file"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue