🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
Omit empty Genre attributes
Deluana186a795f68d
diff --git a/model/genre.go b/model/genre.goindex 3c3d6e559..f55c9953c 100644--- a/model/genre.go+++ b/model/genre.go@@ -1,10 +1,10 @@package modeltype 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