From e1e0446c29add888684958477f3294b4d026cbd1 Mon Sep 17 00:00:00 2001 From: Philip Luyckx Date: Mon, 30 Apr 2018 10:37:04 +0200 Subject: [PATCH] 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 --- models.go | 1 + 1 file changed, 1 insertion(+) diff --git a/models.go b/models.go index 7eccc64..008680c 100644 --- a/models.go +++ b/models.go @@ -42,6 +42,7 @@ type Track struct { Title string `json:"title"` Type string `json:"type_"` Extraartists []ArtistSource `json:"extraartists"` + Artists []ArtistSource `json:"artists"` } // LabelSource ...