summaryrefslogtreecommitdiff
path: root/status.cpp
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2010-03-22 16:22:28 +0100
committerJochen Dolze <vdr@dolze.de>2010-03-22 16:22:28 +0100
commit9344b4ed2f830a78679dc80c23bd44d82098ac1f (patch)
tree1daaf2dab4f56fc039339761c5e1432d57a6d71c /status.cpp
parentac8f47a0ece76e2abcfd096b1a02ba788e1bbeac (diff)
downloadvdr-plugin-markad-9344b4ed2f830a78679dc80c23bd44d82098ac1f.tar.gz
vdr-plugin-markad-9344b4ed2f830a78679dc80c23bd44d82098ac1f.tar.bz2
Revoked plugin scan
Diffstat (limited to 'status.cpp')
-rw-r--r--status.cpp28
1 files changed, 12 insertions, 16 deletions
diff --git a/status.cpp b/status.cpp
index b08fd94..6394fa8 100644
--- a/status.cpp
+++ b/status.cpp
@@ -11,25 +11,15 @@ void cStatusMarkAd::Recording(const cDevice *Device, const char *Name, const cha
{
if (!Device) return; // just to be safe
if (!FileName) return; // we cannot operate without a filename
+ if (!bindir) return; // we cannot operate without bindir
+ if (!logodir) return; // we dont want to operate without logodir
if (On)
{
- if (!Name) return; // we cannot operate without name ;)
-
- cTimer *timer=NULL;
-
- for (cTimer *Timer = Timers.First(); Timer; Timer=Timers.Next(Timer))
- {
- if (Timer->Recording() && (!strcmp(Timer->File(),Name)))
- {
- timer=Timer;
- break;
- }
- }
-
- if (!timer) return;
-
- // TODO: Start the standalone version ;)
+ // Start the standalone version
+ cString cmd = cString::sprintf("\"%s\"/markad --online=2 -l \"%s\" before \"%s\"",bindir,
+ logodir,FileName);
+ SystemExec(cmd);
}
else
{
@@ -37,3 +27,9 @@ void cStatusMarkAd::Recording(const cDevice *Device, const char *Name, const cha
}
}
+
+cStatusMarkAd::cStatusMarkAd(const char *BinDir, const char *LogoDir)
+{
+ bindir=BinDir;
+ logodir=LogoDir;
+}