Skip to content

Commit

Permalink
Release series object (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
garsiden authored Feb 28, 2020
1 parent f499b48 commit e287c7d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion database.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
16 changes: 14 additions & 2 deletions models.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down Expand Up @@ -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 ...
Expand Down

0 comments on commit e287c7d

Please sign in to comment.