aboutsummaryrefslogtreecommitdiff
path: root/RecordTimer.py
diff options
context:
space:
mode:
Diffstat (limited to 'RecordTimer.py')
-rw-r--r--RecordTimer.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/RecordTimer.py b/RecordTimer.py
index 01bb5c72..1e21091d 100644
--- a/RecordTimer.py
+++ b/RecordTimer.py
@@ -437,6 +437,17 @@ class RecordTimer(timer.Timer):
file.write(x)
file.close()
+ def getNextRecordingTime(self):
+ llen = len(self.timer_list)
+ idx = 0
+ while idx < llen:
+ timer = self.timer_list[idx]
+ if timer.justplay:
+ idx += 1
+ else:
+ return timer.begin
+ return -1
+
def record(self, entry):
entry.timeChanged()
print "[Timer] Record " + str(entry)