mirror of
https://github.com/navidrome/navidrome.git
synced 2025-07-14 23:51:27 +03:00
* fix(ui,scanner,subsonic): Allow nullable replaygain and support 0.0 Resolves #4236. Makes the replaygain columns (track/album gain/peak) nullable. Converts the type to a pointer, allowing for 0.0 (a valid value) to be returned from Subsonic. Updates tests for this behavior. * small refactor Signed-off-by: Deluan <deluan@navidrome.org> --------- Signed-off-by: Deluan <deluan@navidrome.org> Co-authored-by: Deluan <deluan@navidrome.org>
152 lines
3.4 KiB
JSON
152 lines
3.4 KiB
JSON
{
|
|
"status": "ok",
|
|
"version": "1.16.1",
|
|
"type": "navidrome",
|
|
"serverVersion": "v0.55.0",
|
|
"openSubsonic": true,
|
|
"directory": {
|
|
"child": [
|
|
{
|
|
"id": "1",
|
|
"isDir": true,
|
|
"title": "title",
|
|
"album": "album",
|
|
"artist": "artist",
|
|
"track": 1,
|
|
"year": 1985,
|
|
"genre": "Rock",
|
|
"coverArt": "1",
|
|
"size": 8421341,
|
|
"contentType": "audio/flac",
|
|
"suffix": "flac",
|
|
"starred": "2016-03-02T20:30:00Z",
|
|
"transcodedContentType": "audio/mpeg",
|
|
"transcodedSuffix": "mp3",
|
|
"duration": 146,
|
|
"bitRate": 320,
|
|
"isVideo": false,
|
|
"bpm": 127,
|
|
"comment": "a comment",
|
|
"sortName": "sorted title",
|
|
"mediaType": "song",
|
|
"musicBrainzId": "4321",
|
|
"isrc": [
|
|
"ISRC-1",
|
|
"ISRC-2"
|
|
],
|
|
"genres": [
|
|
{
|
|
"name": "rock"
|
|
},
|
|
{
|
|
"name": "progressive"
|
|
}
|
|
],
|
|
"replayGain": {
|
|
"trackGain": 1,
|
|
"albumGain": 2,
|
|
"trackPeak": 3,
|
|
"albumPeak": 4,
|
|
"baseGain": 5,
|
|
"fallbackGain": 6
|
|
},
|
|
"channelCount": 2,
|
|
"samplingRate": 44100,
|
|
"bitDepth": 16,
|
|
"moods": [
|
|
"happy",
|
|
"sad"
|
|
],
|
|
"artists": [
|
|
{
|
|
"id": "1",
|
|
"name": "artist1"
|
|
},
|
|
{
|
|
"id": "2",
|
|
"name": "artist2"
|
|
}
|
|
],
|
|
"displayArtist": "artist 1 \u0026 artist 2",
|
|
"albumArtists": [
|
|
{
|
|
"id": "1",
|
|
"name": "album artist1"
|
|
},
|
|
{
|
|
"id": "2",
|
|
"name": "album artist2"
|
|
}
|
|
],
|
|
"displayAlbumArtist": "album artist 1 \u0026 album artist 2",
|
|
"contributors": [
|
|
{
|
|
"role": "role1",
|
|
"subRole": "subrole3",
|
|
"artist": {
|
|
"id": "1",
|
|
"name": "artist1"
|
|
}
|
|
},
|
|
{
|
|
"role": "role2",
|
|
"artist": {
|
|
"id": "2",
|
|
"name": "artist2"
|
|
}
|
|
},
|
|
{
|
|
"role": "composer",
|
|
"artist": {
|
|
"id": "3",
|
|
"name": "composer1"
|
|
}
|
|
},
|
|
{
|
|
"role": "composer",
|
|
"artist": {
|
|
"id": "4",
|
|
"name": "composer2"
|
|
}
|
|
}
|
|
],
|
|
"displayComposer": "composer 1 \u0026 composer 2",
|
|
"explicitStatus": "clean"
|
|
},
|
|
{
|
|
"id": "",
|
|
"isDir": false,
|
|
"isVideo": false,
|
|
"bpm": 0,
|
|
"comment": "",
|
|
"sortName": "",
|
|
"mediaType": "",
|
|
"musicBrainzId": "",
|
|
"isrc": [],
|
|
"genres": [],
|
|
"replayGain": {
|
|
"trackGain": 0,
|
|
"albumGain": 0,
|
|
"trackPeak": 0,
|
|
"albumPeak": 0,
|
|
"baseGain": 0,
|
|
"fallbackGain": 0
|
|
},
|
|
"channelCount": 0,
|
|
"samplingRate": 0,
|
|
"bitDepth": 0,
|
|
"moods": [],
|
|
"artists": [],
|
|
"displayArtist": "",
|
|
"albumArtists": [],
|
|
"displayAlbumArtist": "",
|
|
"contributors": [],
|
|
"displayComposer": "",
|
|
"explicitStatus": ""
|
|
}
|
|
],
|
|
"id": "1",
|
|
"name": "N"
|
|
}
|
|
}
|