9ab0c2dc67
* Add `.editorconfig` file Hints to users how to properly indent Go files (my setup was defaulting to 2 spaces). * Add Subsonic API minimal config option This will allow users to specify clients which can operate with or need the minimum required fields as per the [SubSonic API spec](https://subsonic.org/pages/api.jsp). * Return only required fields for Child Objects For a minimal client, only return the required fields for Child Objects. * Return only required fields for Playlist objects * refactor: simplify client list checks and improve playlist response handling Signed-off-by: Deluan <deluan@navidrome.org> * test: add unit tests for client list checks and playlist building logic Signed-off-by: Deluan <deluan@navidrome.org> * fix: revert Child.IsVideo and Playlist.Public fields from pointer to boolean, and add omitempty to XML tag Signed-off-by: Deluan <deluan@navidrome.org> --------- Signed-off-by: Deluan <deluan@navidrome.org> Co-authored-by: Deluan Quintão <deluan@navidrome.org>
32 lines
673 B
JSON
32 lines
673 B
JSON
{
|
|
"status": "ok",
|
|
"version": "1.16.1",
|
|
"type": "navidrome",
|
|
"serverVersion": "v0.55.0",
|
|
"openSubsonic": true,
|
|
"playlists": {
|
|
"playlist": [
|
|
{
|
|
"id": "111",
|
|
"name": "aaa",
|
|
"comment": "comment",
|
|
"songCount": 2,
|
|
"duration": 120,
|
|
"public": true,
|
|
"owner": "admin",
|
|
"created": "0001-01-01T00:00:00Z",
|
|
"changed": "0001-01-01T00:00:00Z",
|
|
"coverArt": "pl-123123123123"
|
|
},
|
|
{
|
|
"id": "222",
|
|
"name": "bbb",
|
|
"songCount": 0,
|
|
"duration": 0,
|
|
"created": "0001-01-01T00:00:00Z",
|
|
"changed": "0001-01-01T00:00:00Z"
|
|
}
|
|
]
|
|
}
|
|
}
|