X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/1963e01e7ffb86fe0e6942d3630222eddf1ebc67..d6e5c101451d5528f7978a17043f553d951f45ef:/lib/python/Components/RecordingConfig.py diff --git a/lib/python/Components/RecordingConfig.py b/lib/python/Components/RecordingConfig.py index 1353f18a..fe9284d9 100644 --- a/lib/python/Components/RecordingConfig.py +++ b/lib/python/Components/RecordingConfig.py @@ -1,9 +1,10 @@ -from config import * -import os -from enigma import * +from config import ConfigNumber, ConfigYesNo, ConfigSubsection, config def InitRecordingConfig(): config.recording = ConfigSubsection(); - config.recording.asktozap = configElement("config.recording.asktozap", configSelection, 1, (("yes", _("yes")), ("no", _("no"))) ) - config.recording.margin_before = configElement("config.recording.margin_before", configSequence, [0], configsequencearg.get("INTEGER", (0, 30))) - config.recording.margin_after = configElement("config.recording.margin_after", configSequence, [0], configsequencearg.get("INTEGER", (0, 30))) + # 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)