mirror of
https://github.com/taglib/taglib.git
synced 2026-10-09 17:52:03 -04:00
MP4: Use rate atom for RATING property (#1444)
This commit is contained in:
@@ -607,6 +607,14 @@ public:
|
||||
CPPUNIT_ASSERT_EQUAL(123, f.tag()->item("tmpo").toInt());
|
||||
CPPUNIT_ASSERT_EQUAL(StringList("123"), tags["BPM"]);
|
||||
|
||||
tags["RATING"] = StringList("80");
|
||||
f.setProperties(tags);
|
||||
|
||||
tags = f.properties();
|
||||
|
||||
CPPUNIT_ASSERT(f.tag()->contains("rate"));
|
||||
CPPUNIT_ASSERT_EQUAL(StringList("80"), tags["RATING"]);
|
||||
|
||||
CPPUNIT_ASSERT(f.tag()->contains("\251ART"));
|
||||
CPPUNIT_ASSERT_EQUAL(StringList("Foo Bar"), f.tag()->item("\251ART").toStringList());
|
||||
CPPUNIT_ASSERT_EQUAL(StringList("Foo Bar"), tags["ARTIST"]);
|
||||
|
||||
Reference in New Issue
Block a user