Subsonic: Added deprecation notice for funkwhaleVersion field

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2695>
This commit is contained in:
Philipp Wolfer 2024-01-11 12:39:16 +01:00 committed by Marge
parent 136f24a917
commit 2371f2a4cb
2 changed files with 4 additions and 0 deletions

View File

@ -35,6 +35,8 @@ ET._serialize_xml = ET._serialize["xml"] = _serialize_xml
def structure_payload(data):
payload = {
# funkwhaleVersion is deprecated and will be removed in a future
# release. Use serverVersion instead.
"funkwhaleVersion": funkwhale_api.__version__,
"serverVersion": funkwhale_api.__version__,
"status": "ok",

View File

@ -0,0 +1,2 @@
The "funkwhaleVersion" field in Subsonic responses is deprecated. Clients
should use the OpenSubsonic field "serverVersion" instead.