Added album sort name in subsonic responses, fixes #419
This commit is contained in:
@@ -33,7 +33,7 @@ namespace API::Subsonic::Utils
|
||||
throw NotImplementedGenericError{};
|
||||
}
|
||||
|
||||
std::string makeNameFilesystemCompatible(const std::string& name)
|
||||
std::string makeNameFilesystemCompatible(std::string_view name)
|
||||
{
|
||||
return StringUtils::replaceInString(name, "/", "_");
|
||||
}
|
||||
|
||||
@@ -20,9 +20,10 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
|
||||
namespace API::Subsonic::Utils
|
||||
{
|
||||
void checkSetPasswordImplemented();
|
||||
std::string makeNameFilesystemCompatible(const std::string& name);
|
||||
std::string makeNameFilesystemCompatible(std::string_view name);
|
||||
}
|
||||
@@ -106,6 +106,8 @@ namespace API::Subsonic
|
||||
return albumNode;
|
||||
|
||||
// OpenSubsonic specific fields (must always be set)
|
||||
albumNode.setAttribute("sortName", release->getSortName());
|
||||
|
||||
if (!id3)
|
||||
albumNode.setAttribute("mediaType", "album");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user