mirror of
https://github.com/taglib/taglib.git
synced 2025-06-03 17:18:11 -04:00
Use mapped roles instead of property keys for TIPL roles
For an ID3v2 "DJMIXER" property, the "DJ-MIX" TIPL role must be used. For an ID3v2 "MIXER" property, the "MIX" TIPL role must be used. Otherwise it will not work when reading the tag and creating properties from the wrong TIPL roles.
This commit is contained in:
parent
4828a3b925
commit
2c29fbeabb
@ -63,7 +63,10 @@ TextIdentificationFrame *TextIdentificationFrame::createTIPLFrame(const Property
|
||||
TextIdentificationFrame *frame = new TextIdentificationFrame("TIPL");
|
||||
StringList l;
|
||||
for(PropertyMap::ConstIterator it = properties.begin(); it != properties.end(); ++it){
|
||||
l.append(it->first);
|
||||
const String role = involvedPeopleMap()[it->first];
|
||||
if(role.isEmpty()) // should not happen
|
||||
continue;
|
||||
l.append(role);
|
||||
l.append(it->second.toString(",")); // comma-separated list of names
|
||||
}
|
||||
frame->setText(l);
|
||||
|
Loading…
x
Reference in New Issue
Block a user