Skip to content

Commit

Permalink
Merge pull request #3751 from Dima73/locale
Browse files Browse the repository at this point in the history
[InfoBarInstantRecord‎] fix check value.isdigit()
  • Loading branch information
WanWizard committed Aug 12, 2023
2 parents 7189063 + 2386fda commit da1df7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/python/Screens/InfoBarGenerics.py
Original file line number Diff line number Diff line change
Expand Up @@ -2735,7 +2735,7 @@ def addRecordingTime(self, 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)

def inputAddRecordingTime(self, value):
if value and value.isdigit():
if value and value.replace(" ", "").isdigit():
print("[InfoBarInstantRecord] added %d minutes for recording." % int(value))
entry = self.recording[self.selectedEntry]
if int(value) != 0:
Expand All @@ -2744,7 +2744,7 @@ def inputAddRecordingTime(self, value):
self.session.nav.RecordTimer.timeChanged(entry)

def inputCallback(self, value):
if value and value.isdigit():
if value and value.replace(" ", "").isdigit():
print("[InfoBarInstantRecord] stopping recording after %d minutes." % int(value))
entry = self.recording[self.selectedEntry]
if int(value) != 0:
Expand Down

0 comments on commit da1df7e

Please sign in to comment.