Support Matroska field ID 'LANGUAGE'

This commit is contained in:
Martchus 2017-05-07 20:21:19 +02:00
parent 00ea1af26c
commit a334d6db0a
2 changed files with 6 additions and 1 deletions

View File

@ -40,6 +40,7 @@ std::string MatroskaTag::fieldId(KnownField field) const
case KnownField::Lyricist: return lyricist();
case KnownField::Composer: return composer();
case KnownField::Length: return duration();
case KnownField::Language: return language();
default: return string();
}
}
@ -67,7 +68,8 @@ KnownField MatroskaTag::knownField(const std::string &id) const
{actor(), KnownField::Performers},
{lyricist(), KnownField::Lyricist},
{composer(), KnownField::Composer},
{duration(), KnownField::Length}
{duration(), KnownField::Length},
{language(), KnownField::Language},
});
try {
return map.at(id);

View File

@ -262,6 +262,9 @@ inline TAG_PARSER_EXPORT const char *bpm() {
inline TAG_PARSER_EXPORT const char *duration() {
return "DURATION";
}
inline TAG_PARSER_EXPORT const char *language() {
return "LANGUAGE";
}
inline TAG_PARSER_EXPORT const char *numberOfFrames() {
return "NUMBER_OF_FRAMES";
}