Fix getOpenSubsonicExtensions endpoint

Match the current doc: https://opensubsonic.netlify.app/docs/endpoints/getopensubsonicextensions/

openSubsonicExtensions must be an array, not a struct
This commit is contained in:
Deluan
2023-11-27 13:25:06 -05:00
parent 60a5fbe1fe
commit f543e7accc
6 changed files with 68 additions and 2 deletions
@@ -0,0 +1,16 @@
{
"status": "ok",
"version": "1.8.0",
"type": "navidrome",
"serverVersion": "v0.0.0",
"openSubsonic": true,
"openSubsonicExtensions": [
{
"name": "template",
"versions": [
1,
2
]
}
]
}
@@ -0,0 +1,6 @@
<subsonic-response xmlns="http://subsonic.org/restapi" status="ok" version="1.8.0" type="navidrome" serverVersion="v0.0.0" openSubsonic="true">
<openSubsonicExtensions name="template">
<versions>1</versions>
<versions>2</versions>
</openSubsonicExtensions>
</subsonic-response>
@@ -0,0 +1,8 @@
{
"status": "ok",
"version": "1.8.0",
"type": "navidrome",
"serverVersion": "v0.0.0",
"openSubsonic": true,
"openSubsonicExtensions": []
}
@@ -0,0 +1 @@
<subsonic-response xmlns="http://subsonic.org/restapi" status="ok" version="1.8.0" type="navidrome" serverVersion="v0.0.0" openSubsonic="true"></subsonic-response>