diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2020-12-26 15:49:01 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2020-12-26 15:49:01 +0100 |
commit | 2b3556b460665d9a4036b1623e7e7ff5ff6d37d8 (patch) | |
tree | bee99e68a196ba076440ad6516b5a0149996b6f2 /svdrp.c | |
parent | d2e0087c4e13b2acbecc4bafb3cb2ab656c95339 (diff) | |
download | vdr-2b3556b460665d9a4036b1623e7e7ff5ff6d37d8.tar.gz vdr-2b3556b460665d9a4036b1623e7e7ff5ff6d37d8.tar.bz2 |
Implemented "Pattern Timers"2.5.1
Diffstat (limited to 'svdrp.c')
-rw-r--r-- | svdrp.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 |