diff --git a/server/ctrlsubsonic/spec/construct_by_tags.go b/server/ctrlsubsonic/spec/construct_by_tags.go index c34fe14..91dbbc9 100644 --- a/server/ctrlsubsonic/spec/construct_by_tags.go +++ b/server/ctrlsubsonic/spec/construct_by_tags.go @@ -25,6 +25,7 @@ func NewAlbumByTags(a *db.Album, artists []*db.Artist) *Album { AverageRating: formatRating(a.AverageRating), IsCompilation: a.TagCompilation, ReleaseTypes: formatReleaseTypes(a.TagReleaseType), + DiscTitles: []*DiscTitle{}, } if a.Cover != "" { ret.CoverID = a.SID() diff --git a/server/ctrlsubsonic/spec/spec.go b/server/ctrlsubsonic/spec/spec.go index 0516ac9..3c48066 100644 --- a/server/ctrlsubsonic/spec/spec.go +++ b/server/ctrlsubsonic/spec/spec.go @@ -160,7 +160,7 @@ type Album struct { IsCompilation bool `xml:"isCompilation" json:"isCompilation"` ReleaseTypes []string `xml:"releaseTypes" json:"releaseTypes"` - DiscTitles []*DiscTitle `xml:"discTitles,omitempty" json:"discTitles,omitempty"` + DiscTitles []*DiscTitle `xml:"discTitles" json:"discTitles"` // star / rating Starred *time.Time `xml:"starred,attr,omitempty" json:"starred,omitempty"` diff --git a/server/ctrlsubsonic/testdata/test_get_album_list_alpha_artist b/server/ctrlsubsonic/testdata/test_get_album_list_alpha_artist index fd56b12..eaacc23 100644 --- a/server/ctrlsubsonic/testdata/test_get_album_list_alpha_artist +++ b/server/ctrlsubsonic/testdata/test_get_album_list_alpha_artist @@ -23,7 +23,8 @@ "duration": 300, "playCount": 0, "isCompilation": false, - "releaseTypes": [] + "releaseTypes": [], + "discTitles": null }, { "id": "al-4", @@ -41,7 +42,8 @@ "duration": 300, "playCount": 0, "isCompilation": false, - "releaseTypes": [] + "releaseTypes": [], + "discTitles": null }, { "id": "al-5", @@ -59,7 +61,8 @@ "duration": 300, "playCount": 0, "isCompilation": false, - "releaseTypes": [] + "releaseTypes": [], + "discTitles": null }, { "id": "al-7", @@ -77,7 +80,8 @@ "duration": 300, "playCount": 0, "isCompilation": false, - "releaseTypes": [] + "releaseTypes": [], + "discTitles": null }, { "id": "al-8", @@ -95,7 +99,8 @@ "duration": 300, "playCount": 0, "isCompilation": false, - "releaseTypes": [] + "releaseTypes": [], + "discTitles": null }, { "id": "al-9", @@ -113,7 +118,8 @@ "duration": 300, "playCount": 0, "isCompilation": false, - "releaseTypes": [] + "releaseTypes": [], + "discTitles": null }, { "id": "al-11", @@ -131,7 +137,8 @@ "duration": 300, "playCount": 0, "isCompilation": false, - "releaseTypes": [] + "releaseTypes": [], + "discTitles": null }, { "id": "al-12", @@ -149,7 +156,8 @@ "duration": 300, "playCount": 0, "isCompilation": false, - "releaseTypes": [] + "releaseTypes": [], + "discTitles": null }, { "id": "al-13", @@ -167,7 +175,8 @@ "duration": 300, "playCount": 0, "isCompilation": false, - "releaseTypes": [] + "releaseTypes": [], + "discTitles": null } ] } diff --git a/server/ctrlsubsonic/testdata/test_get_album_list_alpha_name b/server/ctrlsubsonic/testdata/test_get_album_list_alpha_name index ed398d1..4ba8992 100644 --- a/server/ctrlsubsonic/testdata/test_get_album_list_alpha_name +++ b/server/ctrlsubsonic/testdata/test_get_album_list_alpha_name @@ -23,7 +23,8 @@ "duration": 300, "playCount": 0, "isCompilation": false, - "releaseTypes": [] + "releaseTypes": [], + "discTitles": null }, { "id": "al-7", @@ -41,7 +42,8 @@ "duration": 300, "playCount": 0, "isCompilation": false, - "releaseTypes": [] + "releaseTypes": [], + "discTitles": null }, { "id": "al-11", @@ -59,7 +61,8 @@ "duration": 300, "playCount": 0, "isCompilation": false, - "releaseTypes": [] + "releaseTypes": [], + "discTitles": null }, { "id": "al-4", @@ -77,7 +80,8 @@ "duration": 300, "playCount": 0, "isCompilation": false, - "releaseTypes": [] + "releaseTypes": [], + "discTitles": null }, { "id": "al-8", @@ -95,7 +99,8 @@ "duration": 300, "playCount": 0, "isCompilation": false, - "releaseTypes": [] + "releaseTypes": [], + "discTitles": null }, { "id": "al-12", @@ -113,7 +118,8 @@ "duration": 300, "playCount": 0, "isCompilation": false, - "releaseTypes": [] + "releaseTypes": [], + "discTitles": null }, { "id": "al-5", @@ -131,7 +137,8 @@ "duration": 300, "playCount": 0, "isCompilation": false, - "releaseTypes": [] + "releaseTypes": [], + "discTitles": null }, { "id": "al-9", @@ -149,7 +156,8 @@ "duration": 300, "playCount": 0, "isCompilation": false, - "releaseTypes": [] + "releaseTypes": [], + "discTitles": null }, { "id": "al-13", @@ -167,7 +175,8 @@ "duration": 300, "playCount": 0, "isCompilation": false, - "releaseTypes": [] + "releaseTypes": [], + "discTitles": null } ] } diff --git a/server/ctrlsubsonic/testdata/test_get_album_list_newest b/server/ctrlsubsonic/testdata/test_get_album_list_newest index fd56b12..eaacc23 100644 --- a/server/ctrlsubsonic/testdata/test_get_album_list_newest +++ b/server/ctrlsubsonic/testdata/test_get_album_list_newest @@ -23,7 +23,8 @@ "duration": 300, "playCount": 0, "isCompilation": false, - "releaseTypes": [] + "releaseTypes": [], + "discTitles": null }, { "id": "al-4", @@ -41,7 +42,8 @@ "duration": 300, "playCount": 0, "isCompilation": false, - "releaseTypes": [] + "releaseTypes": [], + "discTitles": null }, { "id": "al-5", @@ -59,7 +61,8 @@ "duration": 300, "playCount": 0, "isCompilation": false, - "releaseTypes": [] + "releaseTypes": [], + "discTitles": null }, { "id": "al-7", @@ -77,7 +80,8 @@ "duration": 300, "playCount": 0, "isCompilation": false, - "releaseTypes": [] + "releaseTypes": [], + "discTitles": null }, { "id": "al-8", @@ -95,7 +99,8 @@ "duration": 300, "playCount": 0, "isCompilation": false, - "releaseTypes": [] + "releaseTypes": [], + "discTitles": null }, { "id": "al-9", @@ -113,7 +118,8 @@ "duration": 300, "playCount": 0, "isCompilation": false, - "releaseTypes": [] + "releaseTypes": [], + "discTitles": null }, { "id": "al-11", @@ -131,7 +137,8 @@ "duration": 300, "playCount": 0, "isCompilation": false, - "releaseTypes": [] + "releaseTypes": [], + "discTitles": null }, { "id": "al-12", @@ -149,7 +156,8 @@ "duration": 300, "playCount": 0, "isCompilation": false, - "releaseTypes": [] + "releaseTypes": [], + "discTitles": null }, { "id": "al-13", @@ -167,7 +175,8 @@ "duration": 300, "playCount": 0, "isCompilation": false, - "releaseTypes": [] + "releaseTypes": [], + "discTitles": null } ] } diff --git a/server/ctrlsubsonic/testdata/test_get_album_list_random b/server/ctrlsubsonic/testdata/test_get_album_list_random index 0085856..d4128f4 100644 --- a/server/ctrlsubsonic/testdata/test_get_album_list_random +++ b/server/ctrlsubsonic/testdata/test_get_album_list_random @@ -23,115 +23,8 @@ "duration": 300, "playCount": 0, "isCompilation": false, - "releaseTypes": [] - }, - { - "id": "al-5", - "created": "2019-11-30T00:00:00Z", - "artist": "artist-0", - "artists": null, - "displayArtist": "", - "title": "album-2", - "album": "album-2", - "parent": "al-2", - "isDir": true, - "coverArt": "al-5", - "name": "album-2", - "songCount": 3, - "duration": 300, - "playCount": 0, - "isCompilation": false, - "releaseTypes": [] - }, - { - "id": "al-7", - "created": "2019-11-30T00:00:00Z", - "artist": "artist-1", - "artists": null, - "displayArtist": "", - "title": "album-0", - "album": "album-0", - "parent": "al-6", - "isDir": true, - "coverArt": "al-7", - "name": "album-0", - "songCount": 3, - "duration": 300, - "playCount": 0, - "isCompilation": false, - "releaseTypes": [] - }, - { - "id": "al-12", - "created": "2019-11-30T00:00:00Z", - "artist": "artist-2", - "artists": null, - "displayArtist": "", - "title": "album-1", - "album": "album-1", - "parent": "al-10", - "isDir": true, - "coverArt": "al-12", - "name": "album-1", - "songCount": 3, - "duration": 300, - "playCount": 0, - "isCompilation": false, - "releaseTypes": [] - }, - { - "id": "al-9", - "created": "2019-11-30T00:00:00Z", - "artist": "artist-1", - "artists": null, - "displayArtist": "", - "title": "album-2", - "album": "album-2", - "parent": "al-6", - "isDir": true, - "coverArt": "al-9", - "name": "album-2", - "songCount": 3, - "duration": 300, - "playCount": 0, - "isCompilation": false, - "releaseTypes": [] - }, - { - "id": "al-4", - "created": "2019-11-30T00:00:00Z", - "artist": "artist-0", - "artists": null, - "displayArtist": "", - "title": "album-1", - "album": "album-1", - "parent": "al-2", - "isDir": true, - "coverArt": "al-4", - "name": "album-1", - "songCount": 3, - "duration": 300, - "playCount": 0, - "isCompilation": false, - "releaseTypes": [] - }, - { - "id": "al-3", - "created": "2019-11-30T00:00:00Z", - "artist": "artist-0", - "artists": null, - "displayArtist": "", - "title": "album-0", - "album": "album-0", - "parent": "al-2", - "isDir": true, - "coverArt": "al-3", - "name": "album-0", - "songCount": 3, - "duration": 300, - "playCount": 0, - "isCompilation": false, - "releaseTypes": [] + "releaseTypes": [], + "discTitles": null }, { "id": "al-13", @@ -149,7 +42,65 @@ "duration": 300, "playCount": 0, "isCompilation": false, - "releaseTypes": [] + "releaseTypes": [], + "discTitles": null + }, + { + "id": "al-7", + "created": "2019-11-30T00:00:00Z", + "artist": "artist-1", + "artists": null, + "displayArtist": "", + "title": "album-0", + "album": "album-0", + "parent": "al-6", + "isDir": true, + "coverArt": "al-7", + "name": "album-0", + "songCount": 3, + "duration": 300, + "playCount": 0, + "isCompilation": false, + "releaseTypes": [], + "discTitles": null + }, + { + "id": "al-5", + "created": "2019-11-30T00:00:00Z", + "artist": "artist-0", + "artists": null, + "displayArtist": "", + "title": "album-2", + "album": "album-2", + "parent": "al-2", + "isDir": true, + "coverArt": "al-5", + "name": "album-2", + "songCount": 3, + "duration": 300, + "playCount": 0, + "isCompilation": false, + "releaseTypes": [], + "discTitles": null + }, + { + "id": "al-4", + "created": "2019-11-30T00:00:00Z", + "artist": "artist-0", + "artists": null, + "displayArtist": "", + "title": "album-1", + "album": "album-1", + "parent": "al-2", + "isDir": true, + "coverArt": "al-4", + "name": "album-1", + "songCount": 3, + "duration": 300, + "playCount": 0, + "isCompilation": false, + "releaseTypes": [], + "discTitles": null }, { "id": "al-8", @@ -167,7 +118,65 @@ "duration": 300, "playCount": 0, "isCompilation": false, - "releaseTypes": [] + "releaseTypes": [], + "discTitles": null + }, + { + "id": "al-9", + "created": "2019-11-30T00:00:00Z", + "artist": "artist-1", + "artists": null, + "displayArtist": "", + "title": "album-2", + "album": "album-2", + "parent": "al-6", + "isDir": true, + "coverArt": "al-9", + "name": "album-2", + "songCount": 3, + "duration": 300, + "playCount": 0, + "isCompilation": false, + "releaseTypes": [], + "discTitles": null + }, + { + "id": "al-12", + "created": "2019-11-30T00:00:00Z", + "artist": "artist-2", + "artists": null, + "displayArtist": "", + "title": "album-1", + "album": "album-1", + "parent": "al-10", + "isDir": true, + "coverArt": "al-12", + "name": "album-1", + "songCount": 3, + "duration": 300, + "playCount": 0, + "isCompilation": false, + "releaseTypes": [], + "discTitles": null + }, + { + "id": "al-3", + "created": "2019-11-30T00:00:00Z", + "artist": "artist-0", + "artists": null, + "displayArtist": "", + "title": "album-0", + "album": "album-0", + "parent": "al-2", + "isDir": true, + "coverArt": "al-3", + "name": "album-0", + "songCount": 3, + "duration": 300, + "playCount": 0, + "isCompilation": false, + "releaseTypes": [], + "discTitles": null } ] } diff --git a/server/ctrlsubsonic/testdata/test_get_album_list_two_alpha_artist b/server/ctrlsubsonic/testdata/test_get_album_list_two_alpha_artist index fea6cb8..2868317 100644 --- a/server/ctrlsubsonic/testdata/test_get_album_list_two_alpha_artist +++ b/server/ctrlsubsonic/testdata/test_get_album_list_two_alpha_artist @@ -25,7 +25,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] }, { "id": "al-4", @@ -45,7 +46,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] }, { "id": "al-5", @@ -65,7 +67,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] }, { "id": "al-7", @@ -85,7 +88,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] }, { "id": "al-8", @@ -105,7 +109,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] }, { "id": "al-9", @@ -125,7 +130,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] }, { "id": "al-11", @@ -145,7 +151,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] }, { "id": "al-12", @@ -165,7 +172,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] }, { "id": "al-13", @@ -185,7 +193,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] } ] } diff --git a/server/ctrlsubsonic/testdata/test_get_album_list_two_alpha_name b/server/ctrlsubsonic/testdata/test_get_album_list_two_alpha_name index c9989b4..a9b5bea 100644 --- a/server/ctrlsubsonic/testdata/test_get_album_list_two_alpha_name +++ b/server/ctrlsubsonic/testdata/test_get_album_list_two_alpha_name @@ -25,7 +25,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] }, { "id": "al-7", @@ -45,7 +46,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] }, { "id": "al-11", @@ -65,7 +67,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] }, { "id": "al-4", @@ -85,7 +88,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] }, { "id": "al-8", @@ -105,7 +109,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] }, { "id": "al-12", @@ -125,7 +130,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] }, { "id": "al-5", @@ -145,7 +151,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] }, { "id": "al-9", @@ -165,7 +172,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] }, { "id": "al-13", @@ -185,7 +193,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] } ] } diff --git a/server/ctrlsubsonic/testdata/test_get_album_list_two_newest b/server/ctrlsubsonic/testdata/test_get_album_list_two_newest index fea6cb8..2868317 100644 --- a/server/ctrlsubsonic/testdata/test_get_album_list_two_newest +++ b/server/ctrlsubsonic/testdata/test_get_album_list_two_newest @@ -25,7 +25,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] }, { "id": "al-4", @@ -45,7 +46,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] }, { "id": "al-5", @@ -65,7 +67,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] }, { "id": "al-7", @@ -85,7 +88,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] }, { "id": "al-8", @@ -105,7 +109,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] }, { "id": "al-9", @@ -125,7 +130,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] }, { "id": "al-11", @@ -145,7 +151,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] }, { "id": "al-12", @@ -165,7 +172,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] }, { "id": "al-13", @@ -185,7 +193,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] } ] } diff --git a/server/ctrlsubsonic/testdata/test_get_album_list_two_random b/server/ctrlsubsonic/testdata/test_get_album_list_two_random index 53e0ba3..881d8fe 100644 --- a/server/ctrlsubsonic/testdata/test_get_album_list_two_random +++ b/server/ctrlsubsonic/testdata/test_get_album_list_two_random @@ -7,106 +7,6 @@ "openSubsonic": true, "albumList2": { "album": [ - { - "id": "al-5", - "created": "2019-11-30T00:00:00Z", - "artistId": "ar-1", - "artist": "artist-0", - "artists": [{ "id": "ar-1", "name": "artist-0" }], - "displayArtist": "artist-0", - "title": "album-2", - "album": "album-2", - "coverArt": "al-5", - "name": "album-2", - "songCount": 3, - "duration": 300, - "playCount": 0, - "genre": "Unknown Genre", - "genres": [{ "name": "Unknown Genre" }], - "year": 2021, - "isCompilation": false, - "releaseTypes": ["Album"] - }, - { - "id": "al-3", - "created": "2019-11-30T00:00:00Z", - "artistId": "ar-1", - "artist": "artist-0", - "artists": [{ "id": "ar-1", "name": "artist-0" }], - "displayArtist": "artist-0", - "title": "album-0", - "album": "album-0", - "coverArt": "al-3", - "name": "album-0", - "songCount": 3, - "duration": 300, - "playCount": 0, - "genre": "Unknown Genre", - "genres": [{ "name": "Unknown Genre" }], - "year": 2021, - "isCompilation": false, - "releaseTypes": ["Album"] - }, - { - "id": "al-8", - "created": "2019-11-30T00:00:00Z", - "artistId": "ar-2", - "artist": "artist-1", - "artists": [{ "id": "ar-2", "name": "artist-1" }], - "displayArtist": "artist-1", - "title": "album-1", - "album": "album-1", - "coverArt": "al-8", - "name": "album-1", - "songCount": 3, - "duration": 300, - "playCount": 0, - "genre": "Unknown Genre", - "genres": [{ "name": "Unknown Genre" }], - "year": 2021, - "isCompilation": false, - "releaseTypes": ["Album"] - }, - { - "id": "al-13", - "created": "2019-11-30T00:00:00Z", - "artistId": "ar-3", - "artist": "artist-2", - "artists": [{ "id": "ar-3", "name": "artist-2" }], - "displayArtist": "artist-2", - "title": "album-2", - "album": "album-2", - "coverArt": "al-13", - "name": "album-2", - "songCount": 3, - "duration": 300, - "playCount": 0, - "genre": "Unknown Genre", - "genres": [{ "name": "Unknown Genre" }], - "year": 2021, - "isCompilation": false, - "releaseTypes": ["Album"] - }, - { - "id": "al-11", - "created": "2019-11-30T00:00:00Z", - "artistId": "ar-3", - "artist": "artist-2", - "artists": [{ "id": "ar-3", "name": "artist-2" }], - "displayArtist": "artist-2", - "title": "album-0", - "album": "album-0", - "coverArt": "al-11", - "name": "album-0", - "songCount": 3, - "duration": 300, - "playCount": 0, - "genre": "Unknown Genre", - "genres": [{ "name": "Unknown Genre" }], - "year": 2021, - "isCompilation": false, - "releaseTypes": ["Album"] - }, { "id": "al-12", "created": "2019-11-30T00:00:00Z", @@ -125,19 +25,20 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] }, { - "id": "al-4", + "id": "al-5", "created": "2019-11-30T00:00:00Z", "artistId": "ar-1", "artist": "artist-0", "artists": [{ "id": "ar-1", "name": "artist-0" }], "displayArtist": "artist-0", - "title": "album-1", - "album": "album-1", - "coverArt": "al-4", - "name": "album-1", + "title": "album-2", + "album": "album-2", + "coverArt": "al-5", + "name": "album-2", "songCount": 3, "duration": 300, "playCount": 0, @@ -145,27 +46,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] - }, - { - "id": "al-7", - "created": "2019-11-30T00:00:00Z", - "artistId": "ar-2", - "artist": "artist-1", - "artists": [{ "id": "ar-2", "name": "artist-1" }], - "displayArtist": "artist-1", - "title": "album-0", - "album": "album-0", - "coverArt": "al-7", - "name": "album-0", - "songCount": 3, - "duration": 300, - "playCount": 0, - "genre": "Unknown Genre", - "genres": [{ "name": "Unknown Genre" }], - "year": 2021, - "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] }, { "id": "al-9", @@ -185,7 +67,134 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] + }, + { + "id": "al-3", + "created": "2019-11-30T00:00:00Z", + "artistId": "ar-1", + "artist": "artist-0", + "artists": [{ "id": "ar-1", "name": "artist-0" }], + "displayArtist": "artist-0", + "title": "album-0", + "album": "album-0", + "coverArt": "al-3", + "name": "album-0", + "songCount": 3, + "duration": 300, + "playCount": 0, + "genre": "Unknown Genre", + "genres": [{ "name": "Unknown Genre" }], + "year": 2021, + "isCompilation": false, + "releaseTypes": ["Album"], + "discTitles": [] + }, + { + "id": "al-11", + "created": "2019-11-30T00:00:00Z", + "artistId": "ar-3", + "artist": "artist-2", + "artists": [{ "id": "ar-3", "name": "artist-2" }], + "displayArtist": "artist-2", + "title": "album-0", + "album": "album-0", + "coverArt": "al-11", + "name": "album-0", + "songCount": 3, + "duration": 300, + "playCount": 0, + "genre": "Unknown Genre", + "genres": [{ "name": "Unknown Genre" }], + "year": 2021, + "isCompilation": false, + "releaseTypes": ["Album"], + "discTitles": [] + }, + { + "id": "al-7", + "created": "2019-11-30T00:00:00Z", + "artistId": "ar-2", + "artist": "artist-1", + "artists": [{ "id": "ar-2", "name": "artist-1" }], + "displayArtist": "artist-1", + "title": "album-0", + "album": "album-0", + "coverArt": "al-7", + "name": "album-0", + "songCount": 3, + "duration": 300, + "playCount": 0, + "genre": "Unknown Genre", + "genres": [{ "name": "Unknown Genre" }], + "year": 2021, + "isCompilation": false, + "releaseTypes": ["Album"], + "discTitles": [] + }, + { + "id": "al-8", + "created": "2019-11-30T00:00:00Z", + "artistId": "ar-2", + "artist": "artist-1", + "artists": [{ "id": "ar-2", "name": "artist-1" }], + "displayArtist": "artist-1", + "title": "album-1", + "album": "album-1", + "coverArt": "al-8", + "name": "album-1", + "songCount": 3, + "duration": 300, + "playCount": 0, + "genre": "Unknown Genre", + "genres": [{ "name": "Unknown Genre" }], + "year": 2021, + "isCompilation": false, + "releaseTypes": ["Album"], + "discTitles": [] + }, + { + "id": "al-4", + "created": "2019-11-30T00:00:00Z", + "artistId": "ar-1", + "artist": "artist-0", + "artists": [{ "id": "ar-1", "name": "artist-0" }], + "displayArtist": "artist-0", + "title": "album-1", + "album": "album-1", + "coverArt": "al-4", + "name": "album-1", + "songCount": 3, + "duration": 300, + "playCount": 0, + "genre": "Unknown Genre", + "genres": [{ "name": "Unknown Genre" }], + "year": 2021, + "isCompilation": false, + "releaseTypes": ["Album"], + "discTitles": [] + }, + { + "id": "al-13", + "created": "2019-11-30T00:00:00Z", + "artistId": "ar-3", + "artist": "artist-2", + "artists": [{ "id": "ar-3", "name": "artist-2" }], + "displayArtist": "artist-2", + "title": "album-2", + "album": "album-2", + "coverArt": "al-13", + "name": "album-2", + "songCount": 3, + "duration": 300, + "playCount": 0, + "genre": "Unknown Genre", + "genres": [{ "name": "Unknown Genre" }], + "year": 2021, + "isCompilation": false, + "releaseTypes": ["Album"], + "discTitles": [] } ] } diff --git a/server/ctrlsubsonic/testdata/test_get_album_with_cover b/server/ctrlsubsonic/testdata/test_get_album_with_cover index 2c3eaf6..69400cb 100644 --- a/server/ctrlsubsonic/testdata/test_get_album_with_cover +++ b/server/ctrlsubsonic/testdata/test_get_album_with_cover @@ -109,7 +109,8 @@ } ], "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] } } } diff --git a/server/ctrlsubsonic/testdata/test_get_album_without_cover b/server/ctrlsubsonic/testdata/test_get_album_without_cover index 7aad8d8..703efbc 100644 --- a/server/ctrlsubsonic/testdata/test_get_album_without_cover +++ b/server/ctrlsubsonic/testdata/test_get_album_without_cover @@ -18,7 +18,8 @@ "duration": 0, "playCount": 0, "isCompilation": false, - "releaseTypes": [""] + "releaseTypes": [""], + "discTitles": [] } } } diff --git a/server/ctrlsubsonic/testdata/test_get_artist_id_one b/server/ctrlsubsonic/testdata/test_get_artist_id_one index 8fa4d81..64f1ff5 100644 --- a/server/ctrlsubsonic/testdata/test_get_artist_id_one +++ b/server/ctrlsubsonic/testdata/test_get_artist_id_one @@ -28,7 +28,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] }, { "id": "al-4", @@ -48,7 +49,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] }, { "id": "al-5", @@ -68,7 +70,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] } ] } diff --git a/server/ctrlsubsonic/testdata/test_get_artist_id_three b/server/ctrlsubsonic/testdata/test_get_artist_id_three index 79cc850..f181cab 100644 --- a/server/ctrlsubsonic/testdata/test_get_artist_id_three +++ b/server/ctrlsubsonic/testdata/test_get_artist_id_three @@ -28,7 +28,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] }, { "id": "al-12", @@ -48,7 +49,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] }, { "id": "al-13", @@ -68,7 +70,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] } ] } diff --git a/server/ctrlsubsonic/testdata/test_get_artist_id_two b/server/ctrlsubsonic/testdata/test_get_artist_id_two index 66003b1..b792636 100644 --- a/server/ctrlsubsonic/testdata/test_get_artist_id_two +++ b/server/ctrlsubsonic/testdata/test_get_artist_id_two @@ -28,7 +28,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] }, { "id": "al-8", @@ -48,7 +49,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] }, { "id": "al-9", @@ -68,7 +70,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] } ] } diff --git a/server/ctrlsubsonic/testdata/test_search_three_q_alb b/server/ctrlsubsonic/testdata/test_search_three_q_alb index 20d6b61..2d8a202 100644 --- a/server/ctrlsubsonic/testdata/test_search_three_q_alb +++ b/server/ctrlsubsonic/testdata/test_search_three_q_alb @@ -25,7 +25,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] }, { "id": "al-4", @@ -45,7 +46,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] }, { "id": "al-5", @@ -65,7 +67,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] }, { "id": "al-7", @@ -85,7 +88,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] }, { "id": "al-8", @@ -105,7 +109,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] }, { "id": "al-9", @@ -125,7 +130,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] }, { "id": "al-11", @@ -145,7 +151,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] }, { "id": "al-12", @@ -165,7 +172,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] }, { "id": "al-13", @@ -185,7 +193,8 @@ "genres": [{ "name": "Unknown Genre" }], "year": 2021, "isCompilation": false, - "releaseTypes": ["Album"] + "releaseTypes": ["Album"], + "discTitles": [] } ] }