Add 'Artists' field to 'Track'
Some tracks contain different artists than specified in the release. In this case there is a field 'artists' in the JSON response. This field is added to the 'Track' struct. When the field 'artists' is available in the JSON response, the length of 'Artists' is not 0. Otherwise the 'Artists' from the release should be used. Signed-off-by: Philip Luyckx <philip.luyckx@gmail.com>
This commit is contained in:
parent
dd501a3f65
commit
e1e0446c29
@ -42,6 +42,7 @@ type Track struct {
|
|||||||
Title string `json:"title"`
|
Title string `json:"title"`
|
||||||
Type string `json:"type_"`
|
Type string `json:"type_"`
|
||||||
Extraartists []ArtistSource `json:"extraartists"`
|
Extraartists []ArtistSource `json:"extraartists"`
|
||||||
|
Artists []ArtistSource `json:"artists"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// LabelSource ...
|
// LabelSource ...
|
||||||
|
Reference in New Issue
Block a user