musikr.metadata: uppercase internal atoms

This commit is contained in:
Alexander Capehart 2024-12-23 16:46:12 -05:00
parent 6ccae5f0d2
commit 6652e351cf
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47

View file

@ -67,6 +67,11 @@ void JVMMetadataBuilder::setMp4(const TagLib::MP4::Tag &tag) {
auto map = tag.itemMap();
for (auto item : map) {
auto itemName = item.first;
if (itemName.startsWith("----")) {
// Capitalize description atoms only
// Other standard atoms are cased so we want to avoid collissions there.
itemName = itemName.upper();
}
auto itemValue = item.second;
auto type = itemValue.type();
// Only read out the atoms for the reasonable tags we are expecting.