X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/c06f79c0451ca844f89809058a2767a1a319b137..92456d9542585d58e011fa4f0b501de3ef9c1819:/lib/python/Components/RecordingConfig.py diff --git a/lib/python/Components/RecordingConfig.py b/lib/python/Components/RecordingConfig.py index 99c15a66..03719860 100644 --- a/lib/python/Components/RecordingConfig.py +++ b/lib/python/Components/RecordingConfig.py @@ -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", _("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 = ConfigInteger(default=0, limits=(0,30)) + config.recording.margin_after = ConfigInteger(default=0, limits=(0,30))