summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Wieninger <cwieninger (at) gmx (dot) de>2009-09-13 10:10:55 +0200
committerChristian Wieninger <cwieninger (at) gmx (dot) de>2009-09-13 10:10:55 +0200
commit5b4c9ee0bf713fc36709563733059426458ab485 (patch)
treebf041442c916e5528ec5eadb6e930ef74b6fea90
parent6c8c62e93c543fd940169da519e6528c47e54717 (diff)
downloadvdr-plugin-epgsearch-5b4c9ee0bf713fc36709563733059426458ab485.tar.gz
vdr-plugin-epgsearch-5b4c9ee0bf713fc36709563733059426458ab485.tar.bz2
enable "use search timers" by externally triggered updates
-rw-r--r--HISTORY2
-rw-r--r--HISTORY.DE2
-rw-r--r--epgsearch.c2
-rw-r--r--epgsearchsvdrp.c2
4 files changed, 8 insertions, 0 deletions
diff --git a/HISTORY b/HISTORY
index ffec882..f2f33de 100644
--- a/HISTORY
+++ b/HISTORY
@@ -64,6 +64,8 @@ new:
by the user.
- default path to sendmail is now '/usr/sbin/sendmail' and can be configured in the Makefile,
thanks to Ville Skyttä for providing a patch.
+- externally triggered search timer updates (via service interface or SVDRP) will now
+ automatically activate the setting "Use search timers" in the setup.
fixes:
- fixed a crash when pressing 'Ok' in an empty timers done menu
diff --git a/HISTORY.DE b/HISTORY.DE
index b701d43..0b1ee17 100644
--- a/HISTORY.DE
+++ b/HISTORY.DE
@@ -67,6 +67,8 @@ neu:
geändert wurde.
- Der Default-Pfad zu sendmail ist nun '/usr/sbin/sendmail' und kann per Makefile konfiguriert
werden, Danke an Ville Skyttä für den Patch.
+- Externe Suchtimer-Updates (via service interface oder SVDRP) aktivieren nun automatisch die
+ Option "Suchtimer verw." im Setup.
fixes:
- Absturz beim Drücken von 'Ok' in leerem Menü erledigter Timer behoben
diff --git a/epgsearch.c b/epgsearch.c
index fd63219..a11b33d 100644
--- a/epgsearch.c
+++ b/epgsearch.c
@@ -261,6 +261,8 @@ bool cPluginEpgsearch::Service(const char *Id, void *Data)
else
{
Epgsearch_updatesearchtimers_v1_0* serviceData = (Epgsearch_updatesearchtimers_v1_0*) Data;
+ if (!EPGSearchConfig.useSearchTimers) // enable search timer thread if necessary
+ cSearchTimerThread::Init((cPluginEpgsearch*) cPluginManager::GetPlugin("epgsearch"), true);
updateForced = serviceData->showMessage?3:1;
}
return true;
diff --git a/epgsearchsvdrp.c b/epgsearchsvdrp.c
index a06c3fa..23ab20e 100644
--- a/epgsearchsvdrp.c
+++ b/epgsearchsvdrp.c
@@ -142,6 +142,8 @@ cString cPluginEpgsearch::SVDRPCommand(const char *Command, const char *Option,
{
if (strcasecmp(Command, "UPDS") == 0)
{
+ if (!EPGSearchConfig.useSearchTimers) // enable search timer thread if necessary
+ cSearchTimerThread::Init((cPluginEpgsearch*) cPluginManager::GetPlugin("epgsearch"), true);
updateForced = 1;
if (Option)
{