mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
Merge remote-tracking branch 'check/cst-next'
*needs buildfixing* Conflicts: src/daemonc/Makefile.am src/daemonc/remotecontrol.cpp src/driver/Makefile.am src/driver/audiodec/Makefile.am src/driver/pictureviewer/Makefile.am src/driver/vfd.cpp src/gui/bedit/Makefile.am src/gui/components/Makefile.am src/gui/luainstance.cpp src/gui/widget/Makefile.am src/nhttpd/tuxboxapi/coolstream/Makefile.am src/system/Makefile.am
This commit is contained in:
@@ -43,6 +43,7 @@
|
||||
|
||||
extern CBouquetList * bouquetList;
|
||||
extern CBouquetList * TVfavList;
|
||||
extern CBouquetList * RADIOfavList;
|
||||
extern CBouquetList * TVbouquetList;
|
||||
|
||||
CEpgScan::CEpgScan()
|
||||
@@ -66,6 +67,33 @@ CEpgScan * CEpgScan::getInstance()
|
||||
return inst;
|
||||
}
|
||||
|
||||
void CEpgScan::ConfigureEIT()
|
||||
{
|
||||
CEitManager::getInstance()->clearChannelFilters();
|
||||
if (g_settings.epg_save_mode == 0)
|
||||
return;
|
||||
|
||||
int count = 0;
|
||||
|
||||
for (unsigned j = 0; j < TVfavList->Bouquets.size(); ++j) {
|
||||
CChannelList * clist = TVfavList->Bouquets[j]->channelList;
|
||||
for (unsigned i = 0; i < clist->Size(); i++) {
|
||||
CZapitChannel * chan = clist->getChannelFromIndex(i);
|
||||
CEitManager::getInstance()->addChannelFilter(chan->getOriginalNetworkId(), chan->getTransportStreamId(), chan->getServiceId());
|
||||
count++;
|
||||
}
|
||||
}
|
||||
for (unsigned j = 0; j < RADIOfavList->Bouquets.size(); ++j) {
|
||||
CChannelList * clist = RADIOfavList->Bouquets[j]->channelList;
|
||||
for (unsigned i = 0; i < clist->Size(); i++) {
|
||||
CZapitChannel * chan = clist->getChannelFromIndex(i);
|
||||
CEitManager::getInstance()->addChannelFilter(chan->getOriginalNetworkId(), chan->getTransportStreamId(), chan->getServiceId());
|
||||
count++;
|
||||
}
|
||||
}
|
||||
INFO("added %d channels to EIT white list\n", count);
|
||||
}
|
||||
|
||||
void CEpgScan::Clear()
|
||||
{
|
||||
scanmap.clear();
|
||||
|
Reference in New Issue
Block a user