Skip to content

Commit

Permalink
Revert "[epg] no longer use a temporary epg table while updating". Up…
Browse files Browse the repository at this point in the history
…dating after the initial load was broken after this. I'll check why it broke after Frodo and just revert this one for now.

This reverts commit c964d40.
  • Loading branch information
opdenkamp committed Dec 17, 2012
1 parent e66adc2 commit 849653a
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion xbmc/epg/Epg.cpp
Expand Up @@ -782,7 +782,22 @@ bool CEpg::IsRemovableTag(const CEpgInfoTag &tag) const

bool CEpg::LoadFromClients(time_t start, time_t end)
{
return UpdateFromScraper(start, end);
bool bReturn(false);
CPVRChannelPtr channel = Channel();
if (channel)
{
CEpg tmpEpg(channel);
if (tmpEpg.UpdateFromScraper(start, end))
bReturn = UpdateEntries(tmpEpg, !g_guiSettings.GetBool("epg.ignoredbforclient"));
}
else
{
CEpg tmpEpg(m_iEpgID, m_strName, m_strScraperName);
if (tmpEpg.UpdateFromScraper(start, end))
bReturn = UpdateEntries(tmpEpg, !g_guiSettings.GetBool("epg.ignoredbforclient"));
}

return bReturn;
}

CEpgInfoTagPtr CEpg::GetNextEvent(const CEpgInfoTag& tag) const
Expand Down

0 comments on commit 849653a

Please sign in to comment.