Example #1
0
CStdString CEpgInfoTag::Icon(void) const
{
  CStdString retVal;
  CEpg *epg = g_EpgContainer.GetById(m_iEpgId);

  CSingleLock lock(m_critSection);
  retVal = m_strIconPath;
  if (retVal.IsEmpty() && epg && epg->HasPVRChannel())
     retVal = epg->Channel()->IconPath();
  return retVal;
}
Example #2
0
bool CEpg::UpdateMetadata(const CEpg &epg, bool bUpdateDb /* = false */)
{
  bool bReturn = true;
  CSingleLock lock(m_critSection);

  m_strName = epg.m_strName;
  m_strScraperName = epg.m_strScraperName;
  if (epg.HasPVRChannel())
    m_Channel = epg.m_Channel;

  if (bUpdateDb)
    bReturn = Persist();

  return bReturn;
}