Fix Gemini Music references
Some checks failed
Deploy Hugo site to Pages / build (push) Has been cancelled
Deploy Hugo site to Pages / deploy (push) Has been cancelled
Deploy Hugo site to Pages / ipfs-publish (push) Has been cancelled
Deploy Hugo site to Pages / gemini-deploy (push) Has been cancelled

This commit is contained in:
JP Hastings-Spital 2024-10-21 11:51:54 +01:00
parent 29199c7c55
commit 9589c224cc
2 changed files with 8 additions and 1 deletions

View file

@ -0,0 +1,7 @@
{{- $data := (index site.Data.music.musicbrainz (.Get 0)) -}}
{{- with $data -}}
{{- $displayArtist := .composer | default .artist -}}
{{- $displayTitle := .title | default .album -}}
=> {{ .musicbrainz }} 🎵 {{ $displayArtist }}{{ with $displayTitle }}{{ if $displayArtist }}: {{ end }}{{ . }}{{ end }}
{{ end -}}

View file

@ -30,7 +30,7 @@ Things I might work on within my personal blog's software.
- [ ] Import Facebook posts - [ ] Import Facebook posts
- [ ] Songwhip is dead 😭 replace with something else - [ ] Songwhip is dead 😭 replace with something else
- [x] Approach complete. Use Musicbrainz - [x] Approach complete. Use Musicbrainz
- Annoyingly soundcloud URLs don't include the data needed to create an embed, so have to add that manually - Annoyingly soundcloud URLs don't include the data needed to create an embed, so have to add that manually. Perhaps this will help? https://developers.soundcloud.com/docs/oembed#introduction
- [ ] Auto-import from UUID [using release IDs](https://musicbrainz.org/ws/2/recording/013efa85-b7f5-4f95-809b-ff47c53726a9?inc=artist-credits%20artist-rels%20url-rels&fmt=json) — more complex to get composer info (eg. [here](https://musicbrainz.org/ws/2/recording/bfbd2167-db3a-469a-a0a3-3fdeacbd4344?inc=artist-credits%20artist-rels%20url-rels%20work-rels%20work-level-rels&fmt=json)) - [ ] Auto-import from UUID [using release IDs](https://musicbrainz.org/ws/2/recording/013efa85-b7f5-4f95-809b-ff47c53726a9?inc=artist-credits%20artist-rels%20url-rels&fmt=json) — more complex to get composer info (eg. [here](https://musicbrainz.org/ws/2/recording/bfbd2167-db3a-469a-a0a3-3fdeacbd4344?inc=artist-credits%20artist-rels%20url-rels%20work-rels%20work-level-rels&fmt=json))
- `composer: .relations[type=performance].work.relations[type=composer].name` - `composer: .relations[type=performance].work.relations[type=composer].name`
- `title: .title` (Or album, if path is `/release` not `/recording`) - `title: .title` (Or album, if path is `/release` not `/recording`)