diff options
author | Jochen Dolze <vdr@dolze.de> | 2010-03-22 16:22:28 +0100 |
---|---|---|
committer | Jochen Dolze <vdr@dolze.de> | 2010-03-22 16:22:28 +0100 |
commit | 9344b4ed2f830a78679dc80c23bd44d82098ac1f (patch) | |
tree | 1daaf2dab4f56fc039339761c5e1432d57a6d71c /status.cpp | |
parent | ac8f47a0ece76e2abcfd096b1a02ba788e1bbeac (diff) | |
download | vdr-plugin-markad-9344b4ed2f830a78679dc80c23bd44d82098ac1f.tar.gz vdr-plugin-markad-9344b4ed2f830a78679dc80c23bd44d82098ac1f.tar.bz2 |
Revoked plugin scan
Diffstat (limited to 'status.cpp')
-rw-r--r-- | status.cpp | 28 |
1 files changed, 12 insertions, 16 deletions
@@ -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; +} |