27 lines
877 B
Go
27 lines
877 B
Go
package musicbrainz
|
|
|
|
// ReleaseGroup represents a MusicBrainz Release Group entity.
|
|
// This is the primary data model for the provider - we work with
|
|
// Release Groups to minimize duplicates from different releases.
|
|
//
|
|
// Type holds the primary type (Album, Single, EP, Other, Broadcast, ...).
|
|
// SecondaryTypes holds secondary type classifications (Live, Compilation,
|
|
// Remix, ...). Together they drive the scanner's type filtering; release
|
|
// groups have no status, so there is no Status field.
|
|
type ReleaseGroup struct {
|
|
ID string
|
|
Title string
|
|
Type string
|
|
SecondaryTypes []string
|
|
ArtistID string
|
|
ArtistName string
|
|
ReleaseDate string
|
|
}
|
|
|
|
// ParsedReleaseGroups holds the result of parsing a MusicBrainz
|
|
// release-group list XML response.
|
|
type ParsedReleaseGroups struct {
|
|
ReleaseGroups []ReleaseGroup
|
|
Count int
|
|
}
|