NFIFlash: hide hdd and other mounts (#480)
[vuplus_dvbapp] / lib / python / Components / RecordingConfig.py
old mode 100644 (file)
new mode 100755 (executable)
index 99c15a6..40dfb2c
@@ -1,9 +1,14 @@
-from config import *
-import os
-from enigma import *
+from config import ConfigNumber, ConfigYesNo, ConfigSubsection, ConfigSelection, config
 
 def InitRecordingConfig():
        config.recording = ConfigSubsection();
-       config.recording.asktozap = configElement("config.recording.asktozap", configSelection, 1, (("yes", _("yes")), ("no", _("no"))) );
-
-
+       # actually this is "recordings always have priority". "Yes" does mean: don't ask. The RecordTimer will ask when value is 0.
+       config.recording.asktozap = ConfigYesNo(default=True)
+       config.recording.margin_before = ConfigNumber(default=0)
+       config.recording.margin_after = ConfigNumber(default=0)
+       config.recording.debug = ConfigYesNo(default = False)
+       config.recording.ascii_filenames = ConfigYesNo(default = False)
+       config.recording.filename_composition = ConfigSelection(default = "standard", choices = [
+               ("standard", _("standard")),
+               ("short", _("Short filenames")),
+               ("long", _("Long filenames")) ] )
\ No newline at end of file