summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohann Friedrichs <johann.friedrichs@web.de>2019-03-22 12:01:17 (GMT)
committerJohann Friedrichs <johann.friedrichs@web.de>2019-03-22 12:01:17 (GMT)
commit5a159b3f0a10f073b24001cb1a5205f84cffb0ff (patch)
tree371dec35a3a5b0e486ee5f4cdbecb039bf39ca09
parentff17eae7a150b1420c3eebcf57ed2a407e9626a4 (diff)
downloadvdr-plugin-epgsearch-5a159b3f0a10f073b24001cb1a5205f84cffb0ff.tar.gz
vdr-plugin-epgsearch-5a159b3f0a10f073b24001cb1a5205f84cffb0ff.tar.bz2
Searchtimers are always local. Thx MarkusE
-rw-r--r--epgsearchtools.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/epgsearchtools.c b/epgsearchtools.c
index 614248a..7890eb4 100644
--- a/epgsearchtools.c
+++ b/epgsearchtools.c
@@ -428,6 +428,11 @@ bool InEditMode(const char* ItemText, const char* ItemName, const char* ItemValu
// checks if the timer was triggered from a search timer and return a pointer to the search
cSearchExt* TriggeredFromSearchTimer(const cTimer* timer)
{
+// searches will create local timers only.
+// But, an epgsearch running on a remote VDR might create a timer. And this timer has a search ID ...
+// Therefore, we must first ensure that the timer is local
+ if(timer->Remote())
+ return NULL;
char* searchID = GetAuxValue(timer, "s-id");
if (!searchID)
return NULL;