mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
neutrino.cpp: move new/removed from favorites to all channels bouquet list
Origin commit data
------------------
Commit: 361c6b2e31
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2012-04-21 (Sat, 21 Apr 2012)
This commit is contained in:
@@ -1276,6 +1276,37 @@ void CNeutrinoApp::channelsInit(bool bOnly)
|
|||||||
RADIOsatList->deleteBouquet(tmp2);
|
RADIOsatList->deleteBouquet(tmp2);
|
||||||
TIMER_STOP("[neutrino] sat took");
|
TIMER_STOP("[neutrino] sat took");
|
||||||
}
|
}
|
||||||
|
#if 1
|
||||||
|
/* new channels */
|
||||||
|
CServiceManager::getInstance()->GetAllTvChannels(zapitList, CZapitChannel::NEW);
|
||||||
|
if (!zapitList.empty()) {
|
||||||
|
CBouquet* newBouquet = new CBouquet(0, g_Locale->getText(LOCALE_BOUQUETNAME_NEW), false, true);
|
||||||
|
newBouquet->channelList->SetChannelList(&zapitList);
|
||||||
|
TVallList->Bouquets.push_back(newBouquet);
|
||||||
|
printf("[neutrino] got %d new TV channels\n", zapitList.size()); fflush(stdout);
|
||||||
|
}
|
||||||
|
CServiceManager::getInstance()->GetAllTvChannels(zapitList, CZapitChannel::REMOVED);
|
||||||
|
if (!zapitList.empty()) {
|
||||||
|
CBouquet* newBouquet = new CBouquet(0, g_Locale->getText(LOCALE_BOUQUETNAME_REMOVED), false, true);
|
||||||
|
newBouquet->channelList->SetChannelList(&zapitList);
|
||||||
|
TVallList->Bouquets.push_back(newBouquet);
|
||||||
|
printf("[neutrino] got %d removed TV channels\n", zapitList.size()); fflush(stdout);
|
||||||
|
}
|
||||||
|
CServiceManager::getInstance()->GetAllRadioChannels(zapitList, CZapitChannel::NEW);
|
||||||
|
if (!zapitList.empty()) {
|
||||||
|
CBouquet* newBouquet = new CBouquet(0, g_Locale->getText(LOCALE_BOUQUETNAME_NEW), false, true);
|
||||||
|
newBouquet->channelList->SetChannelList(&zapitList);
|
||||||
|
RADIOallList->Bouquets.push_back(newBouquet);
|
||||||
|
printf("[neutrino] got %d new RADIO channels\n", zapitList.size()); fflush(stdout);
|
||||||
|
}
|
||||||
|
CServiceManager::getInstance()->GetAllRadioChannels(zapitList, CZapitChannel::REMOVED);
|
||||||
|
if (!zapitList.empty()) {
|
||||||
|
CBouquet* newBouquet = new CBouquet(0, g_Locale->getText(LOCALE_BOUQUETNAME_REMOVED), false, true);
|
||||||
|
newBouquet->channelList->SetChannelList(&zapitList);
|
||||||
|
RADIOallList->Bouquets.push_back(newBouquet);
|
||||||
|
printf("[neutrino] got %d removed RADIO channels\n", zapitList.size()); fflush(stdout);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
TIMER_STOP("[neutrino] sats took");
|
TIMER_STOP("[neutrino] sats took");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1307,7 +1338,7 @@ void CNeutrinoApp::channelsInit(bool bOnly)
|
|||||||
printf("[neutrino] got %d HD channels\n", zapitList.size()); fflush(stdout);
|
printf("[neutrino] got %d HD channels\n", zapitList.size()); fflush(stdout);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#if 0
|
||||||
/* new channels */
|
/* new channels */
|
||||||
CServiceManager::getInstance()->GetAllTvChannels(zapitList, CZapitChannel::NEW);
|
CServiceManager::getInstance()->GetAllTvChannels(zapitList, CZapitChannel::NEW);
|
||||||
if (!zapitList.empty()) {
|
if (!zapitList.empty()) {
|
||||||
@@ -1323,7 +1354,7 @@ void CNeutrinoApp::channelsInit(bool bOnly)
|
|||||||
TVfavList->Bouquets.push_back(newBouquet);
|
TVfavList->Bouquets.push_back(newBouquet);
|
||||||
printf("[neutrino] got %d removed TV channels\n", zapitList.size()); fflush(stdout);
|
printf("[neutrino] got %d removed TV channels\n", zapitList.size()); fflush(stdout);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
TIMER_STOP("[neutrino] tv took");
|
TIMER_STOP("[neutrino] tv took");
|
||||||
|
|
||||||
/* Favorites and provides RADIO bouquets */
|
/* Favorites and provides RADIO bouquets */
|
||||||
@@ -1341,6 +1372,7 @@ void CNeutrinoApp::channelsInit(bool bOnly)
|
|||||||
bnum++;
|
bnum++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#if 0
|
||||||
/* new channels */
|
/* new channels */
|
||||||
CServiceManager::getInstance()->GetAllRadioChannels(zapitList, CZapitChannel::NEW);
|
CServiceManager::getInstance()->GetAllRadioChannels(zapitList, CZapitChannel::NEW);
|
||||||
if (!zapitList.empty()) {
|
if (!zapitList.empty()) {
|
||||||
@@ -1356,7 +1388,7 @@ void CNeutrinoApp::channelsInit(bool bOnly)
|
|||||||
RADIOfavList->Bouquets.push_back(newBouquet);
|
RADIOfavList->Bouquets.push_back(newBouquet);
|
||||||
printf("[neutrino] got %d removed RADIO channels\n", zapitList.size()); fflush(stdout);
|
printf("[neutrino] got %d removed RADIO channels\n", zapitList.size()); fflush(stdout);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
printf("[neutrino] got %d RADIO bouquets\n", bnum); fflush(stdout);
|
printf("[neutrino] got %d RADIO bouquets\n", bnum); fflush(stdout);
|
||||||
TIMER_STOP("[neutrino] took");
|
TIMER_STOP("[neutrino] took");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user