From a186a795f68dd39371312d1c17baa4d42dc33969 Mon Sep 17 00:00:00 2001 From: Deluan Date: Wed, 27 Dec 2023 12:44:25 -0500 Subject: [PATCH] Omit empty Genre attributes --- model/genre.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/model/genre.go b/model/genre.go index 3c3d6e559..f55c9953c 100644 --- a/model/genre.go +++ b/model/genre.go @@ -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