From 373ee8f0bef9428015b497fcbd741e58182c606d Mon Sep 17 00:00:00 2001 From: emeric Date: Fri, 28 Feb 2025 18:14:00 +0100 Subject: [PATCH] Subsonic API: added version in album responses --- SUBSONIC.md | 1 + src/libs/subsonic/impl/responses/Album.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/SUBSONIC.md b/SUBSONIC.md index 0ef54e21..1781a5f9 100644 --- a/SUBSONIC.md +++ b/SUBSONIC.md @@ -36,6 +36,7 @@ The following extra fields are implemented: * `recordLabels` * `releaseTypes` * `userRating` + * `version` * `Child` response: * `albumArtists` * `artists` diff --git a/src/libs/subsonic/impl/responses/Album.cpp b/src/libs/subsonic/impl/responses/Album.cpp index 7132e011..55fe3d82 100644 --- a/src/libs/subsonic/impl/responses/Album.cpp +++ b/src/libs/subsonic/impl/responses/Album.cpp @@ -145,6 +145,7 @@ namespace lms::api::subsonic return albumNode; // OpenSubsonic specific fields (must always be set) + albumNode.setAttribute("version", release->getComment()); albumNode.setAttribute("sortName", release->getSortName()); albumNode.setAttribute("mediaType", "album");