diff --git a/server/subsonic/responses/.snapshots/Responses AlbumWithSongsID3 with data should match .JSON b/server/subsonic/responses/.snapshots/Responses AlbumWithSongsID3 with data should match .JSON index 24bb69c42..c5f1ea141 100644 --- a/server/subsonic/responses/.snapshots/Responses AlbumWithSongsID3 with data should match .JSON +++ b/server/subsonic/responses/.snapshots/Responses AlbumWithSongsID3 with data should match .JSON @@ -29,6 +29,10 @@ { "disc": 2, "title": "disc 2" + }, + { + "disc": 3, + "title": "" } ], "originalReleaseDate": { diff --git a/server/subsonic/responses/.snapshots/Responses AlbumWithSongsID3 with data should match .XML b/server/subsonic/responses/.snapshots/Responses AlbumWithSongsID3 with data should match .XML index a1aed3fb0..f7bcf1f13 100644 --- a/server/subsonic/responses/.snapshots/Responses AlbumWithSongsID3 with data should match .XML +++ b/server/subsonic/responses/.snapshots/Responses AlbumWithSongsID3 with data should match .XML @@ -4,6 +4,7 @@ + diff --git a/server/subsonic/responses/responses.go b/server/subsonic/responses/responses.go index 2416c74d8..3e6267c31 100644 --- a/server/subsonic/responses/responses.go +++ b/server/subsonic/responses/responses.go @@ -501,8 +501,8 @@ type ReplayGain struct { } type DiscTitle struct { - Disc int `xml:"disc,attr,omitempty" json:"disc,omitempty"` - Title string `xml:"title,attr,omitempty" json:"title,omitempty"` + Disc int `xml:"disc,attr" json:"disc"` + Title string `xml:"title,attr" json:"title"` } type DiscTitles []DiscTitle diff --git a/server/subsonic/responses/responses_test.go b/server/subsonic/responses/responses_test.go index e4e429c98..b4af4a0ec 100644 --- a/server/subsonic/responses/responses_test.go +++ b/server/subsonic/responses/responses_test.go @@ -176,7 +176,7 @@ var _ = Describe("Responses", func() { Id: "1", Name: "album", Artist: "artist", Genre: "rock", Genres: []ItemGenre{{Name: "rock"}, {Name: "progressive"}}, MusicBrainzId: "1234", IsCompilation: true, SortName: "sorted album", - DiscTitles: DiscTitles{{Disc: 1, Title: "disc 1"}, {Disc: 2, Title: "disc 2"}}, + DiscTitles: DiscTitles{{Disc: 1, Title: "disc 1"}, {Disc: 2, Title: "disc 2"}, {Disc: 3}}, OriginalReleaseDate: ItemDate{Year: 1994, Month: 2, Day: 4}, ReleaseDate: ItemDate{Year: 2000, Month: 5, Day: 10}, }