diff options
Diffstat (limited to 'recmanager.c')
-rw-r--r-- | recmanager.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/recmanager.c b/recmanager.c index 9539334..c5cd9fb 100644 --- a/recmanager.c +++ b/recmanager.c @@ -574,3 +574,23 @@ const cEvent **cRecManager::LoadReruns(const cEvent *event, int &numResults) { } return NULL; } + +void cRecManager::GetFavorites(std::vector<cTVGuideSearchTimer> *favorites) { + if (!epgSearchAvailable) { + return; + } + Epgsearch_services_v1_1 *epgSearch = new Epgsearch_services_v1_1; + if (epgSearchPlugin->Service("Epgsearch-services-v1.1", epgSearch)) { + std::list<std::string> searchTimerList; + searchTimerList = epgSearch->handler->SearchTimerList(); + for(std::list<std::string>::iterator it = searchTimerList.begin(); it != searchTimerList.end(); it++) { + cTVGuideSearchTimer timer; + timer.SetEPGSearchString(it->c_str()); + if (timer.Parse()) { + if (timer.UseInFavorites()) + favorites->push_back(timer); + } + } + } + +} |