refs bug #485
[vuplus_dvbapp] / RecordTimer.py
index 04c3ff1..4ece9c5 100755 (executable)
@@ -102,7 +102,10 @@ class RecordTimerEntry(timer.TimerEntry, object):
                
                assert isinstance(serviceref, ServiceReference)
                
-               self.service_ref = serviceref
+               if serviceref.isRecordable():
+                       self.service_ref = serviceref
+               else:
+                       self.service_ref = ServiceReference(None)
                self.eit = eit
                self.dontSave = False
                self.name = name
@@ -138,14 +141,15 @@ class RecordTimerEntry(timer.TimerEntry, object):
                
                filename = begin_date + " - " + service_name
                if self.name:
-                       filename += " - " + self.name
                        if config.usage.setup_level.index >= 2: # expert+
                                if config.recording.filename_composition.value == "short":
                                        filename = begin_shortdate + " - " + self.name
                                elif config.recording.filename_composition.value == "long":
-                                       filename = begin_date + " - " + service_name + " - " + self.name + " - " + self.description
+                                       filename += " - " + self.name + " - " + self.description
                                else:
                                        filename += " - " + self.name # standard
+                       else:
+                               filename += " - " + self.name
 
                if config.recording.ascii_filenames.value:
                        filename = ASCIItranslit.legacyEncode(filename)