from Components.config import config, configElement, ConfigSubsection, configSequence
from ChannelSelection import ChannelSelection
+from Components.BlinkingPoint import BlinkingPointConditional
from Components.ServiceName import ServiceName
from Components.EventInfo import EventInfo
"""Instant Record - handles the instantRecord action in order to
start/stop instant records"""
def __init__(self):
- self["InstnantRecordActions"] = HelpableActionMap(self, "InfobarInstantRecord",
+ self["InstantRecordActions"] = HelpableActionMap(self, "InfobarInstantRecord",
{
"instantRecord": (self.instantRecord, "Instant Record..."),
})
self.recording = None
+
+ self["BlinkingPoint"] = BlinkingPointConditional("/usr/share/enigma2/record.png")
+ self.onShown.append(self["BlinkingPoint"].hidePoint)
def stopCurrentRecording(self):
self.session.nav.RecordTimer.removeEntry(self.recording)
self.recording = None
+ #self["BlinkingPoint"].stopBlinking()
def startInstantRecording(self):
serviceref = self.session.nav.getCurrentlyPlayingServiceReference()
# fix me, description.
self.recording = self.session.nav.recordWithTimer(time.time(), time.time() + 3600, serviceref, epg, "instant record")
self.recording.dontSave = True
+
+ self["BlinkingPoint"].setConnect(lambda: self.recording.isRunning())
+ #self["BlinkingPoint"].startBlinking()
def recordQuestionCallback(self, answer):
if answer == False:
return
if self.recording != None:
- self.session.openWithCallback(self.recordQuestionCallback, MessageBox, "Do you want to stop the current\n(instant) recording?")
+ self.session.openWithCallback(self.recordQuestionCallback, MessageBox, _("Do you want to stop the current\n(instant) recording?"))
else:
- self.session.openWithCallback(self.recordQuestionCallback, MessageBox, "Start recording?")
+ self.session.openWithCallback(self.recordQuestionCallback, MessageBox, _("Start recording?"))
from Screens.AudioSelection import AudioSelection