From e287c7d9b318555775ce8808ae06b2b3b399334d Mon Sep 17 00:00:00 2001 From: Nigel Garside Date: Fri, 28 Feb 2020 11:32:23 +0000 Subject: [PATCH] Release series object (#37) --- database.go | 2 +- models.go | 16 ++++++++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/database.go b/database.go index ecd0e02..61dc86d 100644 --- a/database.go +++ b/database.go @@ -54,7 +54,7 @@ type Release struct { Released string `json:"released"` ReleasedFormatted string `json:"released_formatted"` ResourceURL string `json:"resource_url"` - Series []string `json:"series"` + Series []Series `json:"series"` Status string `json:"status"` Styles []string `json:"styles"` Tracklist []Track `json:"tracklist"` diff --git a/models.go b/models.go index 972b4c7..94ba473 100644 --- a/models.go +++ b/models.go @@ -14,6 +14,17 @@ type Video struct { URI string `json:"uri"` } +// Series ... +type Series struct { + Catno string `json:"catno"` + EntityType string `json:"entity_type"` + EntityTypeName string `json:"entity_type_name"` + ID int `json:"id"` + Name string `json:"name"` + ResourceURL string `json:"resource_url"` + ThumbnailURL string `json:"thumbnail_url"` +} + // ArtistSource ... type ArtistSource struct { Anv string `json:"anv"` @@ -57,8 +68,9 @@ type LabelSource struct { // Identifier ... type Identifier struct { - Type string `json:"type"` - Value string `json:"value"` + Description string `json:"description"` + Type string `json:"type"` + Value string `json:"value"` } // Format ...