CNeutrinoEventList::findEvents - search in unique channelList

Origin commit data
------------------
Commit: 3ee3452fda
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2013-05-13 (Mon, 13 May 2013)
This commit is contained in:
Jacek Jendrzej
2013-05-13 10:13:29 +02:00
parent dba03455e3
commit 42164b85c3

View File

@@ -1006,8 +1006,6 @@ int CEventListHandler::exec(CMenuTarget* parent, const std::string &/*actionkey*
return res;
}
/************************************************************************************************/
bool CNeutrinoEventList::findEvents(void)
/************************************************************************************************/
@@ -1057,15 +1055,23 @@ bool CNeutrinoEventList::findEvents(void)
CHintBox box(LOCALE_TIMING_EPG,g_Locale->getText(LOCALE_EVENTFINDER_SEARCHING));
box.paint();
int bouquet_nr = bouquetList->Bouquets.size();
std::vector<t_channel_id> v;
for(int bouquet = 0; bouquet < bouquet_nr; bouquet++)
{
int channel_nr = bouquetList->Bouquets[bouquet]->channelList->getSize();
for(int channel = 0; channel < channel_nr; channel++)
{
channel_id = bouquetList->Bouquets[bouquet]->channelList->getChannelFromIndex(channel)->channel_id;
CEitManager::getInstance()->getEventsServiceKey(channel_id,evtlist, m_search_epg_item,m_search_keyword);
v.push_back(channel_id);
}
}
sort(v.begin(), v.end());
std::vector<t_channel_id>::iterator last_it = unique(v.begin(), v.end());
std::vector<t_channel_id>::iterator it;
for (it = v.begin(); it != last_it; ++it)
{
CEitManager::getInstance()->getEventsServiceKey(*it,evtlist, m_search_epg_item,m_search_keyword);
}
box.hide();
}
if(!evtlist.empty()){