mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
gui/miscsettings_menu.cpp: add option to cache EPG only for favorite channels,
filter not yet reconfigured after scan or editing favorite bouquets
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