diff options
author | lado <herrlado@gmail.com> | 2013-02-25 13:45:08 +0100 |
---|---|---|
committer | lado <herrlado@gmail.com> | 2013-02-25 13:45:08 +0100 |
commit | 4c6dd2d09e989441238d6e179e4cd9c0ed7d418d (patch) | |
tree | b2b5bd59be533ca09890408d4979a720e3f46005 /vdr-vdrmanager | |
parent | 6ad4d12110219b25d9c7517631174e5551c053c3 (diff) | |
download | vdr-manager-4c6dd2d09e989441238d6e179e4cd9c0ed7d418d.tar.gz vdr-manager-4c6dd2d09e989441238d6e179e4cd9c0ed7d418d.tar.bz2 |
timer delete bug fix
Diffstat (limited to 'vdr-vdrmanager')
-rw-r--r-- | vdr-vdrmanager/helpers.cpp | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/vdr-vdrmanager/helpers.cpp b/vdr-vdrmanager/helpers.cpp index 72c59f9..91af240 100644 --- a/vdr-vdrmanager/helpers.cpp +++ b/vdr-vdrmanager/helpers.cpp @@ -142,8 +142,8 @@ string cHelpers::GetChannelsIntern(string wantedChannels) { result += channel->GetChannelID().ToString(); result += ":"; result += GetAudioTracks(channel); - result += ":"; - result += MapSpecialChars(cSource::ToString(channel->Source())); + result += ":"; + result += MapSpecialChars(cSource::ToString(channel->Source())); result += "\r\n"; } } @@ -390,18 +390,22 @@ string cHelpers::SetTimerIntern(char op, string param) { } /** - * this should come as a parameter later + * this should come lates as a command line parameter */ bool forceDelete = true; - if (t->Recording() && forceDelete == false) { - return Error("Timer is recording"); + if (t->Recording()) { + if(forceDelete == true){ + t->Skip(); + cRecordControls::Process(time(NULL)); + } else { + return Error("Timer is recording"); + } } - isyslog("deleting timer %s", *t->ToDescr()); + dsyslog("[vdrmanager] deleting timer %s", *t->ToDescr()); Timers.Del(t); Timers.SetModified(); - dsyslog("[vdrmanager] timer %s deleted", *t->ToDescr()); break; } case 'M': |