config rewrite. some extensions still need to be updated.
[enigma2.git] / lib / python / Components / RecordingConfig.py
index cf65f747cef2a8407a1c14889d14eb12ce5ef74b..03719860cc8f161de0237f86394386042b374cae 100644 (file)
@@ -1,9 +1,9 @@
-from config import *
+from config import ConfigInteger, ConfigYesNo, ConfigSubsection, config
 import os
-from enigma import *
 
 def InitRecordingConfig():
        config.recording = ConfigSubsection();
-       config.recording.asktozap = configElement("config.recording.asktozap", configSelection, 1, (_("yes"), _("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 = ConfigInteger(default=0, limits=(0,30))
+       config.recording.margin_after = ConfigInteger(default=0, limits=(0,30))