Support Matroska field ID 'LANGUAGE'
This commit is contained in:
parent
00ea1af26c
commit
a334d6db0a
|
@ -40,6 +40,7 @@ std::string MatroskaTag::fieldId(KnownField field) const
|
||||||
case KnownField::Lyricist: return lyricist();
|
case KnownField::Lyricist: return lyricist();
|
||||||
case KnownField::Composer: return composer();
|
case KnownField::Composer: return composer();
|
||||||
case KnownField::Length: return duration();
|
case KnownField::Length: return duration();
|
||||||
|
case KnownField::Language: return language();
|
||||||
default: return string();
|
default: return string();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -67,7 +68,8 @@ KnownField MatroskaTag::knownField(const std::string &id) const
|
||||||
{actor(), KnownField::Performers},
|
{actor(), KnownField::Performers},
|
||||||
{lyricist(), KnownField::Lyricist},
|
{lyricist(), KnownField::Lyricist},
|
||||||
{composer(), KnownField::Composer},
|
{composer(), KnownField::Composer},
|
||||||
{duration(), KnownField::Length}
|
{duration(), KnownField::Length},
|
||||||
|
{language(), KnownField::Language},
|
||||||
});
|
});
|
||||||
try {
|
try {
|
||||||
return map.at(id);
|
return map.at(id);
|
||||||
|
|
|
@ -262,6 +262,9 @@ inline TAG_PARSER_EXPORT const char *bpm() {
|
||||||
inline TAG_PARSER_EXPORT const char *duration() {
|
inline TAG_PARSER_EXPORT const char *duration() {
|
||||||
return "DURATION";
|
return "DURATION";
|
||||||
}
|
}
|
||||||
|
inline TAG_PARSER_EXPORT const char *language() {
|
||||||
|
return "LANGUAGE";
|
||||||
|
}
|
||||||
inline TAG_PARSER_EXPORT const char *numberOfFrames() {
|
inline TAG_PARSER_EXPORT const char *numberOfFrames() {
|
||||||
return "NUMBER_OF_FRAMES";
|
return "NUMBER_OF_FRAMES";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue