mirror of
https://github.com/navidrome/navidrome.git
synced 2026-06-02 07:01:36 +00:00
Omit empty Genre attributes
This commit is contained in:
parent
5c36d42333
commit
dd01263ae0
@ -1,10 +1,10 @@
|
||||
package model
|
||||
|
||||
type Genre struct {
|
||||
ID string `structs:"id" json:"id"`
|
||||
ID string `structs:"id" json:"id,omitempty" toml:"id,omitempty" yaml:"id,omitempty"`
|
||||
Name string `structs:"name" json:"name"`
|
||||
SongCount int `structs:"-" json:"-"`
|
||||
AlbumCount int `structs:"-" json:"-"`
|
||||
SongCount int `structs:"-" json:"-" toml:"-" yaml:"-"`
|
||||
AlbumCount int `structs:"-" json:"-" toml:"-" yaml:"-"`
|
||||
}
|
||||
|
||||
type Genres []Genre
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user