Skip to content

Commit

Permalink
Hotkey record event (#2313) (#2317)
Browse files Browse the repository at this point in the history
* Add a `Start recording current event` hotkey action
  • Loading branch information
wedebe committed May 20, 2022
1 parent a80029c commit 925b12f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/python/Screens/ButtonSetup.py
Expand Up @@ -217,6 +217,7 @@ def getButtonSetupFunctions():
ButtonSetupFunctions.append((_("Show movies"), "Infobar/showMovies", "InfoBar"))
ButtonSetupFunctions.append((_("Instant record"), "Infobar/instantRecord", "InfoBar"))
ButtonSetupFunctions.append((_("Start instant recording"), "Infobar/startInstantRecording", "InfoBar"))
ButtonSetupFunctions.append((_("Start recording current event"), "Infobar/startRecordingCurrentEvent", "InfoBar"))
ButtonSetupFunctions.append((_("Activate timeshift End"), "Infobar/activateTimeshiftEnd", "InfoBar"))
ButtonSetupFunctions.append((_("Activate timeshift end and pause"), "Infobar/activateTimeshiftEndAndPause", "InfoBar"))
ButtonSetupFunctions.append((_("Start timeshift"), "Infobar/startTimeshift", "InfoBar"))
Expand Down
3 changes: 3 additions & 0 deletions lib/python/Screens/InfoBarGenerics.py
Expand Up @@ -3740,6 +3740,9 @@ def startInstantRecording(self, limitEvent=False):
self.session.open(MessageBox, _("Could not record due to invalid service %s") % serviceref, MessageBox.TYPE_INFO)
recording.autoincrease = False

def startRecordingCurrentEvent(self):
self.startInstantRecording(True)

def isInstantRecordRunning(self):
# print "self.recording:", self.recording
if self.recording:
Expand Down
3 changes: 3 additions & 0 deletions po/enigma2.pot
Expand Up @@ -17007,6 +17007,9 @@ msgstr ""
msgid "Start offline decode"
msgstr ""

msgid "Start recording current event"
msgstr ""

msgid "Start recording?"
msgstr ""

Expand Down

0 comments on commit 925b12f

Please sign in to comment.