RecordTimer.py: dont open recordfile when timer is just a zaptimer
authorghost <andreas.monzner@multimedia-labs.de>
Sun, 23 Aug 2009 07:11:26 +0000 (09:11 +0200)
committerghost <andreas.monzner@multimedia-labs.de>
Sun, 23 Aug 2009 07:11:26 +0000 (09:11 +0200)
RecordTimer.py

index 2606a31..febc7f9 100644 (file)
@@ -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
                                # 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
                                # fine. it worked, resources are allocated.
                                self.next_activation = self.begin
                                self.backoff = 0