summaryrefslogtreecommitdiff
path: root/svdrp.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2020-12-26 15:49:01 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2020-12-26 15:49:01 +0100
commit2b3556b460665d9a4036b1623e7e7ff5ff6d37d8 (patch)
treebee99e68a196ba076440ad6516b5a0149996b6f2 /svdrp.c
parentd2e0087c4e13b2acbecc4bafb3cb2ab656c95339 (diff)
downloadvdr-2b3556b460665d9a4036b1623e7e7ff5ff6d37d8.tar.gz
vdr-2b3556b460665d9a4036b1623e7e7ff5ff6d37d8.tar.bz2
Implemented "Pattern Timers"2.5.1
Diffstat (limited to 'svdrp.c')
-rw-r--r--svdrp.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/svdrp.c b/svdrp.c
index 38bd8bb1..8adf0e0c 100644
--- a/svdrp.c
+++ b/svdrp.c
@@ -10,7 +10,7 @@
* and interact with the Video Disk Recorder - or write a full featured
* graphical interface that sits on top of an SVDRP connection.
*
- * $Id: svdrp.c 4.43 2020/06/22 20:59:49 kls Exp $
+ * $Id: svdrp.c 5.1 2020/12/26 15:49:01 kls Exp $
*/
#include "svdrp.h"
@@ -2048,6 +2048,10 @@ void cSVDRPServer::CmdMODT(const char *Option)
Reply(501, "Error in timer settings");
return;
}
+ if (IsRecording && t.IsPatternTimer()) {
+ Reply(550, "Timer is recording");
+ return;
+ }
*Timer = t;
if (IsRecording)
Timer->SetFlags(tfRecording);
@@ -2055,6 +2059,8 @@ void cSVDRPServer::CmdMODT(const char *Option)
Timer->ClrFlags(tfRecording);
Timers->SetModified();
isyslog("SVDRP %s < %s modified timer %s (%s)", Setup.SVDRPHostName, *clientName, *Timer->ToDescr(), Timer->HasFlags(tfActive) ? "active" : "inactive");
+ if (Timer->IsPatternTimer())
+ Timer->SetEvent(NULL);
Reply(250, "%d %s", Timer->Id(), *Timer->ToText(true));
}
else