Skip to content

Commit

Permalink
feat: store the ID of each song
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Gleich <[email protected]>
  • Loading branch information
gleich committed Nov 23, 2024
1 parent fccc365 commit 0966df1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/apis/applemusic/song.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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,
}
}

0 comments on commit 0966df1

Please sign in to comment.