diff options
author | Keine_Ahnung <no@mail.com> | 2012-12-26 19:48:14 +0100 |
---|---|---|
committer | Keine_Ahnung <no@mail.com> | 2012-12-26 19:48:14 +0100 |
commit | 38a6c891d3cdc9e4a990ecbde66aceb7bc2bb065 (patch) | |
tree | c994d16f7cb85ca7de89b4a98ac36df121bfa787 | |
parent | 69672caa28f0395e6cc9c3ad1c1763af23624abd (diff) | |
download | vdr-plugin-ripit-38a6c891d3cdc9e4a990ecbde66aceb7bc2bb065.tar.gz vdr-plugin-ripit-38a6c891d3cdc9e4a990ecbde66aceb7bc2bb065.tar.bz2 |
SVDRP Reply Codes fixed
-rw-r--r-- | ripit.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -107,6 +107,7 @@ cString cPluginRipit::SVDRPCommand(const char *Command, const char *Option, } else { ripitosd->Start_Encode(); + ReplyCode = 900; return "New rip process started"; } } @@ -117,17 +118,20 @@ cString cPluginRipit::SVDRPCommand(const char *Command, const char *Option, } else { ripitosd->Abort_Encode(1); + ReplyCode = 900; return "Rip process aborted"; } } else if(!strcasecmp(Command, "STATUS")) { if(ripitosd->Rip_On()) + ReplyCode = 920; return "A rip process is running"; else + ReplyCode = 910; return "No rip process is running"; } else { - ReplyCode = 502; return "Wrong command"; + ReplyCode = 502; return "Command not implemented"; } return NULL; } |