Skip to content

Instantly share code, notes, and snippets.

@fiveisalive
fiveisalive / hidden-pvr.patch
Created October 21, 2011 06:55
Ignore hidden channels in "Now" and "Next" EPG views
diff --git a/xbmc/pvr/channels/PVRChannelGroup.cpp b/xbmc/pvr/channels/PVRChannelGroup.cpp
index 442d31c..69343bf 100644
--- a/xbmc/pvr/channels/PVRChannelGroup.cpp
+++ b/xbmc/pvr/channels/PVRChannelGroup.cpp
@@ -973,7 +973,7 @@ int CPVRChannelGroup::GetEPGNow(CFileItemList &results)
{
CPVRChannel *channel = at(iChannelPtr).channel;
CEpg *epg = channel->GetEPG();
- if (!epg || !epg->HasValidEntries())
+ if (!epg || !epg->HasValidEntries() || at(iChannelPtr).channel->IsHidden())
@fiveisalive
fiveisalive / epg.patch
Created October 21, 2011 06:20
patch for EPG
diff --git a/xbmc/epg/EpgContainer.cpp b/xbmc/epg/EpgContainer.cpp
index 43cdcaa..54549c5 100644
--- a/xbmc/epg/EpgContainer.cpp
+++ b/xbmc/epg/EpgContainer.cpp
@@ -250,7 +253,8 @@ bool CEpgContainer::UpdateEntry(const CEpg &entry, bool bUpdateDatabase /* = fal
bReturn = epg ? epg->Update(entry, bUpdateDatabase) : false;
m_bPreventUpdates = false;
- CDateTime::GetCurrentDateTime().GetAsUTCDateTime().GetAsTime(m_iNextEpgUpdate);
+ //CDateTime::GetCurrentDateTime().GetAsUTCDateTime().GetAsTime(m_iNextEpgUpdate);