X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fpython%2FComponents%2FRecordingConfig.py;h=03719860cc8f161de0237f86394386042b374cae;hb=88078e7ac2ee289a0dfc321d71c7494657c4457c;hp=ea037a617805767fccc736632d8c8be139589bca;hpb=f0a0f6b79c99fb346c32e435a543c1649a197f54;p=vuplus_dvbapp diff --git a/lib/python/Components/RecordingConfig.py b/lib/python/Components/RecordingConfig.py index ea037a6..0371986 100644 --- a/lib/python/Components/RecordingConfig.py +++ b/lib/python/Components/RecordingConfig.py @@ -1,10 +1,9 @@ -from config import * +from config import ConfigInteger, ConfigYesNo, ConfigSubsection, config import os -from enigma import * def InitRecordingConfig(): config.recording = ConfigSubsection(); # actually this is "recordings always have priority". "Yes" does mean: don't ask. The RecordTimer will ask when value is 0. - config.recording.asktozap = configElement("config.recording.asktozap", configSelection, 1, (("no", _("no")), ("yes", _("yes"))) ) - 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))) + 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))