musicbrainz-provider #2

Merged
Mrixs merged 72 commits from musicbrainz-provider into master 2026-08-05 20:19:16 +00:00
Showing only changes of commit ab2af62cb0 - Show all commits

View File

@@ -148,7 +148,9 @@ func ParseReleaseGroups(data []byte) (*ParsedReleaseGroups, error) {
// so take the first token as the primary type.
primary := rg.PrimaryType
if primary == "" && rg.TypeAttr != "" {
primary = strings.Fields(rg.TypeAttr)[0]
if fields := strings.Fields(rg.TypeAttr); len(fields) > 0 {
primary = fields[0]
}
}
result.ReleaseGroups = append(result.ReleaseGroups, ReleaseGroup{
ID: rg.ID,