Skip to content
This repository has been archived by the owner on Apr 15, 2023. It is now read-only.

Commit

Permalink
epg: remove m_strPlotOutline from m_strPlot if it's the same. closes
Browse files Browse the repository at this point in the history
…#129
  • Loading branch information
opdenkamp committed Jul 26, 2011
1 parent d0cd8df commit 028edcb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions xbmc/epg/EpgInfoTag.cpp
Expand Up @@ -233,9 +233,14 @@ void CEpgInfoTag::SetPlotOutline(const CStdString &strPlotOutline)

void CEpgInfoTag::SetPlot(const CStdString &strPlot)
{
if (m_strPlot != strPlot)

CStdString strPlotClean = (m_strPlotOutline.length() > 0 && strPlot.Left(m_strPlotOutline.length()).Equals(m_strPlotOutline)) ?
strPlot.Right(strPlot.length() - m_strPlotOutline.length()) :
strPlot;

if (m_strPlot != strPlotClean)
{
m_strPlot = strPlot;
m_strPlot = strPlotClean;
m_bChanged = true;
UpdatePath();
}
Expand Down

0 comments on commit 028edcb

Please sign in to comment.