fix(subsonic): return empty opensubsonic fields

https://github.com/sentriz/gonic/pull/397#issuecomment-1806794844
This commit is contained in:
sentriz
2023-11-11 12:32:33 +00:00
parent 3f100fa3a4
commit 5022500b30
12 changed files with 336 additions and 132 deletions

View File

@@ -12,6 +12,9 @@
"album": "album-0",
"artist": "artist-0",
"artists": [{ "id": "ar-1", "name": "artist-0" }],
"displayArtist": "",
"albumArtists": null,
"displayAlbumArtist": "",
"bitRate": 100,
"contentType": "audio/flac",
"coverArt": "al-3",
@@ -33,6 +36,9 @@
"album": "album-0",
"artist": "artist-0",
"artists": [{ "id": "ar-1", "name": "artist-0" }],
"displayArtist": "",
"albumArtists": null,
"displayAlbumArtist": "",
"bitRate": 100,
"contentType": "audio/flac",
"coverArt": "al-3",
@@ -54,6 +60,9 @@
"album": "album-0",
"artist": "artist-0",
"artists": [{ "id": "ar-1", "name": "artist-0" }],
"displayArtist": "",
"albumArtists": null,
"displayAlbumArtist": "",
"bitRate": 100,
"contentType": "audio/flac",
"coverArt": "al-3",
@@ -75,6 +84,9 @@
"album": "album-1",
"artist": "artist-0",
"artists": [{ "id": "ar-1", "name": "artist-0" }],
"displayArtist": "",
"albumArtists": null,
"displayAlbumArtist": "",
"bitRate": 100,
"contentType": "audio/flac",
"coverArt": "al-4",
@@ -96,6 +108,9 @@
"album": "album-1",
"artist": "artist-0",
"artists": [{ "id": "ar-1", "name": "artist-0" }],
"displayArtist": "",
"albumArtists": null,
"displayAlbumArtist": "",
"bitRate": 100,
"contentType": "audio/flac",
"coverArt": "al-4",
@@ -117,6 +132,9 @@
"album": "album-1",
"artist": "artist-0",
"artists": [{ "id": "ar-1", "name": "artist-0" }],
"displayArtist": "",
"albumArtists": null,
"displayAlbumArtist": "",
"bitRate": 100,
"contentType": "audio/flac",
"coverArt": "al-4",
@@ -138,6 +156,9 @@
"album": "album-2",
"artist": "artist-0",
"artists": [{ "id": "ar-1", "name": "artist-0" }],
"displayArtist": "",
"albumArtists": null,
"displayAlbumArtist": "",
"bitRate": 100,
"contentType": "audio/flac",
"coverArt": "al-5",
@@ -159,6 +180,9 @@
"album": "album-2",
"artist": "artist-0",
"artists": [{ "id": "ar-1", "name": "artist-0" }],
"displayArtist": "",
"albumArtists": null,
"displayAlbumArtist": "",
"bitRate": 100,
"contentType": "audio/flac",
"coverArt": "al-5",
@@ -180,6 +204,9 @@
"album": "album-2",
"artist": "artist-0",
"artists": [{ "id": "ar-1", "name": "artist-0" }],
"displayArtist": "",
"albumArtists": null,
"displayAlbumArtist": "",
"bitRate": 100,
"contentType": "audio/flac",
"coverArt": "al-5",
@@ -201,6 +228,9 @@
"album": "album-0",
"artist": "artist-1",
"artists": [{ "id": "ar-2", "name": "artist-1" }],
"displayArtist": "",
"albumArtists": null,
"displayAlbumArtist": "",
"bitRate": 100,
"contentType": "audio/flac",
"coverArt": "al-7",
@@ -222,6 +252,9 @@
"album": "album-0",
"artist": "artist-1",
"artists": [{ "id": "ar-2", "name": "artist-1" }],
"displayArtist": "",
"albumArtists": null,
"displayAlbumArtist": "",
"bitRate": 100,
"contentType": "audio/flac",
"coverArt": "al-7",
@@ -243,6 +276,9 @@
"album": "album-0",
"artist": "artist-1",
"artists": [{ "id": "ar-2", "name": "artist-1" }],
"displayArtist": "",
"albumArtists": null,
"displayAlbumArtist": "",
"bitRate": 100,
"contentType": "audio/flac",
"coverArt": "al-7",
@@ -264,6 +300,9 @@
"album": "album-1",
"artist": "artist-1",
"artists": [{ "id": "ar-2", "name": "artist-1" }],
"displayArtist": "",
"albumArtists": null,
"displayAlbumArtist": "",
"bitRate": 100,
"contentType": "audio/flac",
"coverArt": "al-8",
@@ -285,6 +324,9 @@
"album": "album-1",
"artist": "artist-1",
"artists": [{ "id": "ar-2", "name": "artist-1" }],
"displayArtist": "",
"albumArtists": null,
"displayAlbumArtist": "",
"bitRate": 100,
"contentType": "audio/flac",
"coverArt": "al-8",
@@ -306,6 +348,9 @@
"album": "album-1",
"artist": "artist-1",
"artists": [{ "id": "ar-2", "name": "artist-1" }],
"displayArtist": "",
"albumArtists": null,
"displayAlbumArtist": "",
"bitRate": 100,
"contentType": "audio/flac",
"coverArt": "al-8",
@@ -327,6 +372,9 @@
"album": "album-2",
"artist": "artist-1",
"artists": [{ "id": "ar-2", "name": "artist-1" }],
"displayArtist": "",
"albumArtists": null,
"displayAlbumArtist": "",
"bitRate": 100,
"contentType": "audio/flac",
"coverArt": "al-9",
@@ -348,6 +396,9 @@
"album": "album-2",
"artist": "artist-1",
"artists": [{ "id": "ar-2", "name": "artist-1" }],
"displayArtist": "",
"albumArtists": null,
"displayAlbumArtist": "",
"bitRate": 100,
"contentType": "audio/flac",
"coverArt": "al-9",
@@ -369,6 +420,9 @@
"album": "album-2",
"artist": "artist-1",
"artists": [{ "id": "ar-2", "name": "artist-1" }],
"displayArtist": "",
"albumArtists": null,
"displayAlbumArtist": "",
"bitRate": 100,
"contentType": "audio/flac",
"coverArt": "al-9",
@@ -390,6 +444,9 @@
"album": "album-0",
"artist": "artist-2",
"artists": [{ "id": "ar-3", "name": "artist-2" }],
"displayArtist": "",
"albumArtists": null,
"displayAlbumArtist": "",
"bitRate": 100,
"contentType": "audio/flac",
"coverArt": "al-11",
@@ -411,6 +468,9 @@
"album": "album-0",
"artist": "artist-2",
"artists": [{ "id": "ar-3", "name": "artist-2" }],
"displayArtist": "",
"albumArtists": null,
"displayAlbumArtist": "",
"bitRate": 100,
"contentType": "audio/flac",
"coverArt": "al-11",