Permalink
Browse files

use ALBUM ARTIST and ALBUMARTIST in ID3v2 TXXX fields as album artist

  • Loading branch information...
1 parent a1d90c1 commit c909a29bd4313ce59979069fc25b0f89e36506a9 Jonathan Marshall committed Dec 31, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 xbmc/music/tags/TagLoaderTagLib.cpp
View
2 xbmc/music/tags/TagLoaderTagLib.cpp
@@ -359,6 +359,8 @@ bool CTagLoaderTagLib::ParseID3v2Tag(ID3v2::Tag *id3v2, EmbeddedArt *art, CMusic
else if (frame->description() == "replaygain_album_gain") tag.SetReplayGainAlbumGain((int)(atof(stringList.front().toCString(true)) * 100 + 0.5));
else if (frame->description() == "replaygain_track_peak") tag.SetReplayGainTrackPeak((float)atof(stringList.front().toCString(true)));
else if (frame->description() == "replaygain_album_peak") tag.SetReplayGainAlbumPeak((float)atof(stringList.front().toCString(true)));
+ else if (frame->description() == "ALBUMARTIST") SetAlbumArtist(tag, StringListToVectorString(stringList));
+ else if (frame->description() == "ALBUM ARTIST") SetAlbumArtist(tag, StringListToVectorString(stringList));
else if (g_advancedSettings.m_logLevel == LOG_LEVEL_MAX)
CLog::Log(LOGDEBUG, "unrecognized user text tag detected: TXXX:%s", frame->description().toCString(true));
}

0 comments on commit c909a29

Please sign in to comment.