Skip to content

Commit

Permalink
Merge pull request #268 from flimzy/remove_dupe_field
Browse files Browse the repository at this point in the history
Remove duplicate Album and ExternalIDs fields from FullTrack
  • Loading branch information
strideynet authored Nov 11, 2024
2 parents e23d434 + d861bdb commit 2ac6923
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
4 changes: 0 additions & 4 deletions track.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,6 @@ type LinkedFromInfo struct {
// FullTrack provides extra track data in addition to what is provided by SimpleTrack.
type FullTrack struct {
SimpleTrack
// The album on which the track appears. The album object includes a link in href to full information about the album.
Album SimpleAlbum `json:"album"`
// Known external IDs for the track.
ExternalIDs map[string]string `json:"external_ids"`
// Popularity of the track. The value will be between 0 and 100,
// with 100 being the most popular. The popularity is calculated from
// both total plays and most recent plays.
Expand Down
5 changes: 1 addition & 4 deletions user_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -447,10 +447,7 @@ func TestCurrentUsersTopTracks(t *testing.T) {
}

isrc := "QZ4JJ1764466"
i, ok := tracks.Tracks[0].ExternalIDs["isrc"]
if !ok {
t.Error("External IDs missing ISRC")
}
i := tracks.Tracks[0].ExternalIDs.ISRC
if i != isrc {
t.Errorf("Wrong ISRC: want %s, got %s\n", isrc, i)
}
Expand Down

0 comments on commit 2ac6923

Please sign in to comment.