frameID == "LNK" ||
frameID == "RVA" ||
frameID == "TIM" ||
- frameID == "TSI")
+ frameID == "TSI" ||
+ frameID == "TDA")
{
debug("ID3v2.4 no longer supports the frame type " + String(frameID) +
". It will be discarded from the tag.");
convertFrame("TCM", "TCOM", header);
convertFrame("TCO", "TCON", header);
convertFrame("TCR", "TCOP", header);
- convertFrame("TDA", "TDRC", header);
convertFrame("TDY", "TDLY", header);
convertFrame("TEN", "TENC", header);
convertFrame("TFT", "TFLT", header);
CPPUNIT_TEST(testUpdateGenre23_1);
CPPUNIT_TEST(testUpdateGenre23_2);
CPPUNIT_TEST(testUpdateGenre24);
+ CPPUNIT_TEST(testUpdateDate22);
+ // CPPUNIT_TEST(testUpdateFullDate22); TODO TYE+TDA should be upgraded to TDRC together
CPPUNIT_TEST_SUITE_END();
public:
CPPUNIT_ASSERT_EQUAL(String("R&B Eurodisco"), tag.genre());
}
+ void testUpdateDate22()
+ {
+ MPEG::File f("data/id3v22-tda.mp3", false);
+ CPPUNIT_ASSERT(f.tag());
+ CPPUNIT_ASSERT_EQUAL(TagLib::uint(2010), f.tag()->year());
+ }
+
+ void testUpdateFullDate22()
+ {
+ MPEG::File f("data/id3v22-tda.mp3", false);
+ CPPUNIT_ASSERT(f.tag());
+ CPPUNIT_ASSERT_EQUAL(String("2010-04-03"), f.ID3v2Tag()->frameListMap()["TDRC"].front()->toString());
+ }
+
};
CPPUNIT_TEST_SUITE_REGISTRATION(TestID3v2);