Permalink
Browse files

fixed: handle music info tag 'instruments' additively

  • Loading branch information...
1 parent 5b3b0b3 commit 0e174c01aab81b19490dd9716d2ca20ef0970c51 @mkortstiege mkortstiege committed Nov 17, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 xbmc/music/Artist.cpp
View
@@ -36,10 +36,10 @@ bool CArtist::Load(const TiXmlElement *artist, bool chained, bool prefix)
XMLUtils::GetAdditiveString(artist,"style",g_advancedSettings.m_musicItemSeparator,strStyles);
XMLUtils::GetAdditiveString(artist,"mood",g_advancedSettings.m_musicItemSeparator,strMoods);
XMLUtils::GetAdditiveString(artist,"yearsactive",g_advancedSettings.m_musicItemSeparator,strYearsActive);
+ XMLUtils::GetAdditiveString(artist,"instruments",g_advancedSettings.m_musicItemSeparator,strInstruments);
XMLUtils::GetString(artist,"born",strBorn);
XMLUtils::GetString(artist,"formed",strFormed);
- XMLUtils::GetString(artist,"instruments",strInstruments);
XMLUtils::GetString(artist,"biography",strBiography);
XMLUtils::GetString(artist,"died",strDied);
XMLUtils::GetString(artist,"disbanded",strDisbanded);
@@ -121,9 +121,10 @@ bool CArtist::Save(TiXmlNode *node, const CStdString &tag, const CStdString& str
g_advancedSettings.m_musicItemSeparator, strMoods);
XMLUtils::SetAdditiveString(artist, "yearsactive",
g_advancedSettings.m_musicItemSeparator, strYearsActive);
+ XMLUtils::SetAdditiveString(artist, "instruments",
+ g_advancedSettings.m_musicItemSeparator, strInstruments);
XMLUtils::SetString(artist, "born", strBorn);
XMLUtils::SetString(artist, "formed", strFormed);
- XMLUtils::SetString(artist, "instruments", strInstruments);
XMLUtils::SetString(artist, "biography", strBiography);
XMLUtils::SetString(artist, "died", strDied);
XMLUtils::SetString(artist, "disbanded", strDisbanded);

0 comments on commit 0e174c0

Please sign in to comment.