diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2011-12-04 13:58:33 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2011-12-04 13:58:33 +0100 |
commit | abb95de8a9b233b4d3c8734e8be6bfc541501a81 (patch) | |
tree | 78e32781c6dc0d41a9b20e5585f8392365fd615c /svdrp.c | |
parent | fe0a0116113e8426173b2e4a066350ba6a9d3579 (diff) | |
download | vdr-abb95de8a9b233b4d3c8734e8be6bfc541501a81.tar.gz vdr-abb95de8a9b233b4d3c8734e8be6bfc541501a81.tar.bz2 |
Implemented the SVDRP command UPDR
Diffstat (limited to 'svdrp.c')
-rw-r--r-- | svdrp.c | 12 |
1 files changed, 11 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 2.11 2011/09/11 14:47:22 kls Exp $ + * $Id: svdrp.c 2.12 2011/12/04 13:58:33 kls Exp $ */ #include "svdrp.h" @@ -315,6 +315,9 @@ const char *HelpPages[] = { " Updates a timer. Settings must be in the same format as returned\n" " by the LSTT command. If a timer with the same channel, day, start\n" " and stop time does not yet exists, it will be created.", + "UPDR\n" + " Initiates a re-read of the recordings directory, which is the SVDRP\n" + " equivalent to 'touch .update'.", "VOLU [ <number> | + | - | mute ]\n" " Set the audio volume to the given number (which is limited to the range\n" " 0...255). If the special options '+' or '-' are given, the volume will\n" @@ -1559,6 +1562,12 @@ void cSVDRP::CmdUPDT(const char *Option) Reply(501, "Missing timer settings"); } +void cSVDRP::CmdUPDR(const char *Option) +{ + Recordings.Update(false); + Reply(250, "Re-read of recordings directory triggered"); +} + void cSVDRP::CmdVOLU(const char *Option) { if (*Option) { @@ -1629,6 +1638,7 @@ void cSVDRP::Execute(char *Cmd) else if (CMD("REMO")) CmdREMO(s); else if (CMD("SCAN")) CmdSCAN(s); else if (CMD("STAT")) CmdSTAT(s); + else if (CMD("UPDR")) CmdUPDR(s); else if (CMD("UPDT")) CmdUPDT(s); else if (CMD("VOLU")) CmdVOLU(s); else if (CMD("QUIT")) Close(true); |