I am digging around. I am not sure whether I am on the right track.
Expanding "parseEvent" in RecordTimer.py would be only one step.
The other step would be to expand "TimerEdit.py".
def updateState(self):
cur = self["timerlist"].getCurrent()
if cur:
if cur.external:
self["key_info"].setText("")
else:
self["key_info"].setText(_("Info"))
text = cur.description
if not cur.conflict_detection:
text += _("\nConflict detection disabled!")
self["description"].setText(text)
It gets the description from the stored timer.
So I need the correct EPG information (description + extended description) corresponding to the current selected timer.
So how do I get the event handler of the current timer and call the new parseEvent to get the extended descrption from the EPG?
event = None
??? service = self.session.nav.getCurrentService()
if service is not None:
info = service.info()
if info is not None:
event = info.getEvent(0)
??? data = parseEvent(event, description = True)
Sorry if I am totally wrong. I try to understand but I have never looked into enigma2 sources before. And my Python knowledge is on a beginner's level.
Edited by Qu@rk, 26 December 2019 - 16:35.