From a26632828e14953bebb2666f87e9747362e8ed2f Mon Sep 17 00:00:00 2001 From: emeric Date: Sat, 26 Apr 2025 16:38:50 +0200 Subject: [PATCH] Subsonic API: check if the user has enabled transcoding by default to put transcodedSuffix and transcodedContentType fields --- src/libs/subsonic/impl/responses/Song.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libs/subsonic/impl/responses/Song.cpp b/src/libs/subsonic/impl/responses/Song.cpp index 7fbcb3c9..fb6f37b3 100644 --- a/src/libs/subsonic/impl/responses/Song.cpp +++ b/src/libs/subsonic/impl/responses/Song.cpp @@ -103,6 +103,7 @@ namespace lms::api::subsonic trackResponse.setAttribute("suffix", extension.string().substr(1) /* skip leading .*/); } + if (context.user->getSubsonicEnableTranscodingByDefault()) { const std::string fileSuffix{ formatToSuffix(context.user->getSubsonicDefaultTranscodingOutputFormat()) }; trackResponse.setAttribute("transcodedSuffix", fileSuffix);