NowPlayingPlugin: Minor tweaks.

This commit is contained in:
Birunthan Mohanathas
2011-09-08 12:42:03 +00:00
parent 6b06548260
commit d598c56b76
14 changed files with 47 additions and 67 deletions

View File

@ -184,18 +184,18 @@ void CPlayerWinamp::UpdateData()
m_Album = tag->album().toWString();
m_Title = tag->title().toWString();
if (m_HasLyricsMeasure)
if (m_Measures & MEASURE_LYRICS)
{
FindLyrics();
}
}
else if (m_HasLyricsMeasure)
else if (m_Measures & MEASURE_LYRICS)
{
m_Lyrics.clear();
}
// Find cover if needed
if (m_HasCoverMeasure)
if (m_Measures & MEASURE_COVER)
{
m_CoverPath = GetCacheFile();
if (!CCover::GetCached(m_CoverPath) &&
@ -266,7 +266,7 @@ void CPlayerWinamp::UpdateData()
m_Rating = 0;
m_Duration = 0;
if (m_HasCoverMeasure)
if (m_Measures & MEASURE_COVER)
{
m_CoverPath.clear();
}