From: ghost Date: Sun, 23 Aug 2009 07:11:26 +0000 (+0200) Subject: RecordTimer.py: dont open recordfile when timer is just a zaptimer X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=commitdiff_plain;h=65e93a627a7299c2087f85ae8f2f26bfcea3d122;ds=sidebyside RecordTimer.py: dont open recordfile when timer is just a zaptimer --- diff --git a/RecordTimer.py b/RecordTimer.py index 2606a31..febc7f9 100644 --- a/RecordTimer.py +++ b/RecordTimer.py @@ -218,7 +218,8 @@ class RecordTimerEntry(timer.TimerEntry, object): # because another recording at the same time on another service can try to record the same event # i.e. cable / sat.. then the second recording needs an own extension... when we create the file # here than calculateFilename is happy - open(self.Filename + ".ts", "w").close() + if not self.justplay: + open(self.Filename + ".ts", "w").close() # fine. it worked, resources are allocated. self.next_activation = self.begin self.backoff = 0