mirror of
https://github.com/taglib/taglib.git
synced 2025-07-27 01:14:31 -04:00
Support free form tags with MP4 properties (#1239)
This commit is contained in:
@ -442,6 +442,7 @@ public:
|
||||
tags["BPM"] = StringList("123");
|
||||
tags["ARTIST"] = StringList("Foo Bar");
|
||||
tags["COMPILATION"] = StringList("1");
|
||||
tags["REMIXEDBY"] = StringList("Remixed by");
|
||||
f.setProperties(tags);
|
||||
|
||||
tags = f.properties();
|
||||
@ -468,6 +469,11 @@ public:
|
||||
CPPUNIT_ASSERT_EQUAL(true, f.tag()->item("cpil").toBool());
|
||||
CPPUNIT_ASSERT_EQUAL(StringList("1"), tags["COMPILATION"]);
|
||||
|
||||
CPPUNIT_ASSERT(f.tag()->contains("----:com.apple.iTunes:REMIXEDBY"));
|
||||
CPPUNIT_ASSERT_EQUAL(StringList("Remixed by"),
|
||||
f.tag()->item("----:com.apple.iTunes:REMIXEDBY").toStringList());
|
||||
CPPUNIT_ASSERT_EQUAL(StringList("Remixed by"), tags["REMIXEDBY"]);
|
||||
|
||||
tags["COMPILATION"] = StringList("0");
|
||||
f.setProperties(tags);
|
||||
|
||||
|
Reference in New Issue
Block a user