Map the publisher field for Vorbis comments

This commit is contained in:
Martchus 2023-12-29 15:57:51 +01:00
parent 909a3ee98a
commit 1df871870b
1 changed files with 3 additions and 0 deletions

View File

@ -107,6 +107,8 @@ VorbisComment::IdentifierType VorbisComment::internallyGetFieldId(KnownField fie
return std::string(rating());
case KnownField::Bpm:
return std::string(bpm());
case KnownField::Publisher:
return std::string(publisher());
default:
return std::string();
}
@ -146,6 +148,7 @@ KnownField VorbisComment::internallyGetKnownField(const IdentifierType &id) cons
{ isrc(), KnownField::ISRC },
{ rating(), KnownField::Rating },
{ bpm(), KnownField::Bpm },
{ publisher(), KnownField::Publisher },
});
// clang-format on
const auto knownField(fieldMap.find(id));