From 80d3868ed762c41a264f9bbf113faaf30e784c57 Mon Sep 17 00:00:00 2001 From: ims Date: Sun, 20 Aug 2023 09:57:04 +0200 Subject: [PATCH] InstantRecordings - input can be as number only --- lib/python/Screens/InfoBarGenerics.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py index cb27d57c36a..fea949e755f 100644 --- a/lib/python/Screens/InfoBarGenerics.py +++ b/lib/python/Screens/InfoBarGenerics.py @@ -2729,15 +2729,15 @@ def TimeDateInputClosed(self, ret): def changeDuration(self, entry): if entry is not None and entry >= 0: self.selectedEntry = entry - self.session.openWithCallback(self.inputCallback, InputBox, title=_("How many minutes do you want to record?"), text="5 ", maxSize=True, type=Input.NUMBER) + self.session.openWithCallback(self.inputCallback, InputBox, title=_("How many minutes do you want to record?"), text="5", maxSize=False, type=Input.NUMBER) def addRecordingTime(self, entry): if entry is not None and entry >= 0: self.selectedEntry = entry - self.session.openWithCallback(self.inputAddRecordingTime, InputBox, title=_("How many minutes do you want add to the recording?"), text="5 ", maxSize=True, type=Input.NUMBER) + self.session.openWithCallback(self.inputAddRecordingTime, InputBox, title=_("How many minutes do you want add to the recording?"), text="5", maxSize=False, type=Input.NUMBER) def inputAddRecordingTime(self, value): - if value and value.replace(" ", "").isdigit(): + if value: print("[InfoBarInstantRecord] added %d minutes for recording." % int(value)) entry = self.recording[self.selectedEntry] if int(value) != 0: @@ -2746,7 +2746,7 @@ def inputAddRecordingTime(self, value): self.session.nav.RecordTimer.timeChanged(entry) def inputCallback(self, value): - if value and value.replace(" ", "").isdigit(): + if value: print("[InfoBarInstantRecord] stopping recording after %d minutes." % int(value)) entry = self.recording[self.selectedEntry] if int(value) != 0: