Implement the new OpenSubsonic API transcoding extension fixes #787
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <functional>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
@@ -49,3 +50,15 @@ namespace lms::core::stringUtils
|
||||
std::optional<UUID>
|
||||
readAs(std::string_view str);
|
||||
}
|
||||
|
||||
namespace std
|
||||
{
|
||||
template<>
|
||||
struct hash<lms::core::UUID>
|
||||
{
|
||||
size_t operator()(const lms::core::UUID& str) const
|
||||
{
|
||||
return hash<std::string_view>{}(str.getAsString());
|
||||
}
|
||||
};
|
||||
} // namespace std
|
||||
|
||||
@@ -49,4 +49,6 @@ namespace lms::core::media
|
||||
};
|
||||
|
||||
core::LiteralString codecTypeToString(CodecType type);
|
||||
} // namespace lms::core::media
|
||||
|
||||
bool isCodecLossless(CodecType type);
|
||||
} // namespace lms::core::media
|
||||
|
||||
Reference in New Issue
Block a user