diff --git a/galicaster/classui/recorderui.py b/galicaster/classui/recorderui.py index fee5db04..d8f16112 100644 --- a/galicaster/classui/recorderui.py +++ b/galicaster/classui/recorderui.py @@ -406,7 +406,6 @@ def update_scheduler_timeout(self, status, event_type, title): elif signalized: signalized = False - if dif < datetime.timedelta(0,TIME_RED_START): if not status_label_changed: status.set_name('red_coloured') @@ -422,6 +421,13 @@ def update_scheduler_timeout(self, status, event_type, title): status.set_name('blinking_coloured_to') status_label_blink = not status_label_blink + elif self.recorder.title_standin is not None: + if event_type.get_text(): + event_type.set_text("") + if status.get_text(): + status.set_text("") + title.set_text(_(self.recorder.title_standin)) + else: # Not current or pending recordings if event_type.get_text(): event_type.set_text("") diff --git a/galicaster/recorder/service.py b/galicaster/recorder/service.py index 139fb59a..9caaa436 100644 --- a/galicaster/recorder/service.py +++ b/galicaster/recorder/service.py @@ -69,6 +69,7 @@ def __init__(self, dispatcher, repo, worker, conf, logger, autorecover=False, re self.__create_drawing_areas_func = None self.__handle_recover_id = None self.autorecover = autorecover + self.title_standin = None self.logger.info("Autorecover mode: {}".format(self.autorecover)) @@ -316,6 +317,8 @@ def get_recorded_time(self): """Proxy function to get the recorder time""" return self.recorder.get_recorded_time() if self.recorder else 0 + def set_title_standin(self, title): + self.title_standin = title def _handle_error(self, origin, error_msg): self.logger.error("Handle error ({})". format(error_msg))