Subsonic: Added deprecation notice for funkwhaleVersion field

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2695>
environments/review-docs-renov-r6aeyi/deployments/19166
Philipp Wolfer 2024-01-11 12:39:16 +01:00 zatwierdzone przez Marge
rodzic 136f24a917
commit 2371f2a4cb
2 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -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",

Wyświetl plik

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