Permalink
Browse files

TDRL in ID3v2.4 tags (release date) wasn't read. Also read TDRC (orig…

…inal recording date), and don't bother warning about known tags that we don't support. Fixes #13352
  • Loading branch information...
1 parent 255de2d commit bdf5564db50a3b9c51c348a8e95cb90aa70d4f83 Jonathan Marshall committed Oct 13, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 xbmc/music/tags/TagLoaderTagLib.cpp
@@ -286,6 +286,11 @@ bool CTagLoaderTagLib::ParseID3v2Tag(ID3v2::Tag *id3v2, EmbeddedArt *art, CMusic
else if (it->first == "TYER") tag.SetYear(strtol(it->second.front()->toString().toCString(true), NULL, 10));
else if (it->first == "TCMP") tag.SetCompilation((strtol(it->second.front()->toString().toCString(true), NULL, 10) == 0) ? false : true);
else if (it->first == "TENC") {} // EncodedBy
+ else if (it->first == "TCOP") {} // Copyright message
+ else if (it->first == "TDRC") tag.SetYear(strtol(it->second.front()->toString().toCString(true), NULL, 10));
+ else if (it->first == "TDRL") tag.SetYear(strtol(it->second.front()->toString().toCString(true), NULL, 10));
+ else if (it->first == "TDTG") {} // Tagging time
+ else if (it->first == "TLAN") {} // Languages
else if (it->first == "USLT")
// Loop through any lyrics frames. Could there be multiple frames, how to choose?
for (ID3v2::FrameList::ConstIterator lt = it->second.begin(); lt != it->second.end(); ++lt)

0 comments on commit bdf5564

Please sign in to comment.