Skip to content

Commit

Permalink
Omit empty music tags from JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
hryx committed Oct 19, 2022
1 parent f09da29 commit a889a46
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions zipserver/music_analyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,17 @@ type TrackInfo struct {

// Below are provided directly by the tag package.

Title string
Album string
Artist string
AlbumArtist string
Composer string
Genre string
Year int
Track int
TrackTotal int
Disc int
DiscTotal int
Lyrics string
Comment string
Title string `json:",omitempty"`
Album string `json:",omitempty"`
Artist string `json:",omitempty"`
AlbumArtist string `json:",omitempty"`
Composer string `json:",omitempty"`
Genre string `json:",omitempty"`
Year int `json:",omitempty"`
Track int `json:",omitempty"`
TrackTotal int `json:",omitempty"`
Disc int `json:",omitempty"`
DiscTotal int `json:",omitempty"`
Lyrics string `json:",omitempty"`
Comment string `json:",omitempty"`
}

0 comments on commit a889a46

Please sign in to comment.