From 0966df14e4d04971709ff766bd3040bdcb2d2026 Mon Sep 17 00:00:00 2001 From: Matt Gleich Date: Sat, 23 Nov 2024 04:23:47 -0500 Subject: [PATCH] feat: store the ID of each song Signed-off-by: Matt Gleich --- internal/apis/applemusic/song.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/apis/applemusic/song.go b/internal/apis/applemusic/song.go index a66aadc..2ddd711 100644 --- a/internal/apis/applemusic/song.go +++ b/internal/apis/applemusic/song.go @@ -14,6 +14,7 @@ type song struct { DurationInMillis int `json:"duration_in_millis"` AlbumArtURL string `json:"album_art_url"` URL string `json:"url"` + ID string `json:"id"` } type songResponse struct { @@ -51,5 +52,6 @@ func songFromSongResponse(s songResponse) song { strconv.Itoa(s.Attributes.Artwork.Width), ), "{h}", strconv.Itoa(s.Attributes.Artwork.Height)), URL: s.Attributes.URL, + ID: s.ID, } }