summaryrefslogtreecommitdiff
path: root/recmanager.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2014-01-14 18:00:32 +0100
committerlouis <louis.braun@gmx.de>2014-01-14 18:00:32 +0100
commita8b7c9543477fddb42e7a2bac38a0d139c7de962 (patch)
tree9c681eb0de7fd584f8e50683ffb8aabc0fa716f4 /recmanager.c
parentd0651a4a507bbd633b30105f1fa01abe1172b311 (diff)
downloadvdr-plugin-tvguide-a8b7c9543477fddb42e7a2bac38a0d139c7de962.tar.gz
vdr-plugin-tvguide-a8b7c9543477fddb42e7a2bac38a0d139c7de962.tar.bz2
Favorites menu with EPG Search favorite timers with blue key
Diffstat (limited to 'recmanager.c')
-rw-r--r--recmanager.c20
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);
+ }
+ }
+ }
+
+}