Skip to content

Commit

Permalink
Add TotalTracks to SimpleAlbum struct
Browse files Browse the repository at this point in the history
  • Loading branch information
flimzy committed Nov 10, 2024
1 parent a4e1430 commit 31a6208
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions album.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ type SimpleAlbum struct {
ReleaseDate string `json:"release_date"`
// The precision with which ReleaseDate value is known: "year", "month", or "day"
ReleaseDatePrecision string `json:"release_date_precision"`
// The number of tracks on the album.
TotalTracks Numeric `json:"total_tracks"`
}

// ReleaseDateTime converts the album's ReleaseDate to a time.TimeValue.
Expand Down

0 comments on commit 31a6208

Please sign in to comment.