summaryrefslogtreecommitdiff
path: root/xmltv2vdr.cpp
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2012-06-24 16:16:46 +0200
committerJochen Dolze <vdr@dolze.de>2012-06-24 16:16:46 +0200
commit2688f79af07c3c833d6c49f0e174d7e966660dd2 (patch)
tree706e5bafb9fe1b6828a5eacad21e41570fd7c716 /xmltv2vdr.cpp
parentf154606bd1e8c560c99fd31ca0e3e1fabc94491e (diff)
downloadvdr-plugin-xmltv2vdr-2688f79af07c3c833d6c49f0e174d7e966660dd2.tar.gz
vdr-plugin-xmltv2vdr-2688f79af07c3c833d6c49f0e174d7e966660dd2.tar.bz2
Updatet linkpictures function
Added svdrp TIMR function Improved season and episode matching
Diffstat (limited to 'xmltv2vdr.cpp')
-rw-r--r--xmltv2vdr.cpp27
1 files changed, 26 insertions, 1 deletions
diff --git a/xmltv2vdr.cpp b/xmltv2vdr.cpp
index 8be1334..9e18ad8 100644
--- a/xmltv2vdr.cpp
+++ b/xmltv2vdr.cpp
@@ -1039,6 +1039,8 @@ const char **cPluginXmltv2vdr::SVDRPHelpPages(void)
" Delete xmltv2vdr epg database (triggers update)\n",
"HOUS\n"
" Start housekeeping manually\n",
+ "TIMR\n"
+ " Start timerthread manually\n",
NULL
};
return HelpPages;
@@ -1107,12 +1109,35 @@ cString cPluginXmltv2vdr::SVDRPCommand(const char *Command, const char *Option,
output="epgfile parameter not set\n";
}
}
+ if (!strcasecmp(Command,"TIMR"))
+ {
+ if (!epgexecutor.Active() && g.EPGTimer() && !g.EPGTimer()->Active())
+ {
+ g.EPGTimer()->Start();
+ last_timer_t=(time(NULL)/600)*600;
+ ReplyCode=250;
+ output="timerthread started\n";
+ }
+ else
+ {
+ if (g.EPGTimer())
+ {
+ ReplyCode=550;
+ output="system busy\n";
+ }
+ else
+ {
+ ReplyCode=550;
+ output="no timerthread\n";
+ }
+ }
+ }
if (!strcasecmp(Command,"HOUS"))
{
if (!epgexecutor.Active() && !housekeeping.Active())
{
housekeeping.Start();
- last_housetime_t=(time(NULL) / 3600)*3600;
+ last_housetime_t=(time(NULL)/3600)*3600;
ReplyCode=250;
output="housekeeping started\n";
}