Replaced UUID storage from str to array of bytes
This commit is contained in:
@@ -561,10 +561,10 @@ namespace lms::api::subsonic
|
||||
switch (context.getResponseFormat())
|
||||
{
|
||||
case ResponseFormat::json:
|
||||
artistInfoNode.setAttribute("musicBrainzId", artistMBID->getAsString());
|
||||
artistInfoNode.setAttribute("musicBrainzId", artistMBID->toString());
|
||||
break;
|
||||
case ResponseFormat::xml:
|
||||
artistInfoNode.createChild("musicBrainzId").setValue(artistMBID->getAsString());
|
||||
artistInfoNode.createChild("musicBrainzId").setValue(artistMBID->toString());
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -108,7 +108,7 @@ namespace lms::api::subsonic
|
||||
|
||||
const core::UUID uuid{ getTranscodeDecisionTracker().add(audioFileId, transcodeRes.targetStreamInfo) };
|
||||
transcodeNode.addChild("transcodeStream", createStreamDetails(transcodeRes.targetStreamInfo));
|
||||
transcodeNode.setAttribute("transcodeParams", uuid.getAsString());
|
||||
transcodeNode.setAttribute("transcodeParams", uuid.toString());
|
||||
},
|
||||
[&](const detail::FailureResult& failureRes) {
|
||||
transcodeNode.setAttribute("canDirectPlay", false);
|
||||
|
||||
@@ -165,7 +165,7 @@ namespace lms::api::subsonic
|
||||
|
||||
{
|
||||
std::optional<core::UUID> mbid{ release->getMBID() };
|
||||
albumNode.setAttribute("musicBrainzId", mbid ? mbid->getAsString() : "");
|
||||
albumNode.setAttribute("musicBrainzId", mbid ? mbid->toString() : "");
|
||||
}
|
||||
|
||||
auto addClusters{ [&](Response::Node::Key field, std::string_view clusterTypeName) {
|
||||
|
||||
@@ -34,10 +34,10 @@ namespace lms::api::subsonic
|
||||
switch (context.getResponseFormat())
|
||||
{
|
||||
case ResponseFormat::json:
|
||||
albumInfo.setAttribute("musicBrainzId", releaseMBID->getAsString());
|
||||
albumInfo.setAttribute("musicBrainzId", releaseMBID->toString());
|
||||
break;
|
||||
case ResponseFormat::xml:
|
||||
albumInfo.createChild("musicBrainzId").setValue(releaseMBID->getAsString());
|
||||
albumInfo.createChild("musicBrainzId").setValue(releaseMBID->toString());
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -102,7 +102,7 @@ namespace lms::api::subsonic
|
||||
|
||||
{
|
||||
std::optional<core::UUID> mbid{ artist->getMBID() };
|
||||
artistNode.setAttribute("musicBrainzId", mbid ? mbid->getAsString() : "");
|
||||
artistNode.setAttribute("musicBrainzId", mbid ? mbid->toString() : "");
|
||||
}
|
||||
|
||||
artistNode.setAttribute("sortName", artist->getSortName());
|
||||
|
||||
@@ -192,7 +192,7 @@ namespace lms::api::subsonic
|
||||
|
||||
{
|
||||
std::optional<core::UUID> mbid{ track->getRecordingMBID() };
|
||||
trackResponse.setAttribute("musicBrainzId", mbid ? mbid->getAsString() : "");
|
||||
trackResponse.setAttribute("musicBrainzId", mbid ? mbid->toString() : "");
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user