Handle lyrics tag for mp4
Translation table in mp4tag.cpp for reference.
This commit is contained in:
parent
509c65ced7
commit
0ecb773355
|
@ -451,6 +451,10 @@ void TagReader::ReadFile(const QString& filename,
|
|||
Decode(items["\251grp"].toStringList().toString(" "), nullptr,
|
||||
song->mutable_grouping());
|
||||
}
|
||||
if (items.contains("\251lyr")) {
|
||||
Decode(items["\251lyr"].toStringList().toString(" "), nullptr,
|
||||
song->mutable_lyrics());
|
||||
}
|
||||
|
||||
if (items.contains(kMP4_OriginalYear_ID)) {
|
||||
song->set_originalyear(
|
||||
|
@ -885,6 +889,7 @@ bool TagReader::SaveFile(const QString& filename,
|
|||
song.bpm() <= 0 - 1 ? "0" : TagLib::String::number(song.bpm()));
|
||||
tag->itemListMap()["\251wrt"] = TagLib::StringList(song.composer().c_str());
|
||||
tag->itemListMap()["\251grp"] = TagLib::StringList(song.grouping().c_str());
|
||||
tag->itemListMap()["\251lyr"] = TagLib::StringList(song.lyrics().c_str());
|
||||
tag->itemListMap()["aART"] = TagLib::StringList(song.albumartist().c_str());
|
||||
tag->itemListMap()["cpil"] =
|
||||
TagLib::StringList(song.compilation() ? "1" : "0");
|
||||
|
|
Loading…
Reference in New Issue