Skip to content

Commit

Permalink
Add missing MOOD tag scanning for FLAC/Ogg/Xiph/Vorbis, ASF and MP4/i…
Browse files Browse the repository at this point in the history
…Tunes like other file formats
  • Loading branch information
DaveTBlake authored and MartijnKaijser committed Jan 31, 2016
1 parent 46175d6 commit 8877313
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions xbmc/music/tags/TagLoaderTagLib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,8 @@ bool CTagLoaderTagLib::ParseTag(APE::Tag *ape, EmbeddedArt *art, CMusicInfoTag&
tag.SetYear(it->second.toString().toInt());
else if (it->first == "GENRE")
SetGenre(tag, StringListToVectorString(it->second.toStringList()));
else if (it->first == "MOOD")
tag.SetMood(it->second.toString().to8Bit(true));
else if (it->first == "COMMENT")
tag.SetComment(it->second.toString().to8Bit(true));
else if (it->first == "CUESHEET")
Expand Down Expand Up @@ -470,6 +472,8 @@ bool CTagLoaderTagLib::ParseTag(Ogg::XiphComment *xiph, EmbeddedArt *art, CMusic
tag.SetYear(it->second.front().toInt());
else if (it->first == "GENRE")
SetGenre(tag, StringListToVectorString(it->second));
else if (it->first == "MOOD")
tag.SetMood(it->second.front().to8Bit(true));
else if (it->first == "COMMENT")
tag.SetComment(it->second.front().to8Bit(true));
else if (it->first == "CUESHEET")
Expand Down Expand Up @@ -587,6 +591,8 @@ bool CTagLoaderTagLib::ParseTag(MP4::Tag *mp4, EmbeddedArt *art, CMusicInfoTag&
SetAlbumArtistHints(tag, StringListToVectorString(it->second.toStringList()));
else if (it->first == "\251gen")
SetGenre(tag, StringListToVectorString(it->second.toStringList()));
else if (it->first == "----:com.apple.iTunes:MOOD")
tag.SetMood(it->second.toStringList().front().to8Bit(true));
else if (it->first == "\251cmt")
tag.SetComment(it->second.toStringList().front().to8Bit(true));
else if (it->first == "cpil")
Expand Down

0 comments on commit 8877313

Please sign in to comment.