From 27f60bcea2ab480ce0361371faf29173e0fcef02 Mon Sep 17 00:00:00 2001 From: DYefremov Date: Mon, 28 Oct 2019 11:03:09 +0300 Subject: [PATCH] changed setting service info --- app/ui/main_app_window.py | 6 ++++-- app/ui/main_window.glade | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/ui/main_app_window.py b/app/ui/main_app_window.py index 8125fed1..79d0ca51 100644 --- a/app/ui/main_app_window.py +++ b/app/ui/main_app_window.py @@ -1748,8 +1748,10 @@ class Application(Gtk.Application): status = self._http_api.send((HttpRequestType.STATUS, None)) next(self._http_api) if status: - dsc = status.get("currservice_fulldescription", "") - self._service_epg_label.set_text(dsc.strip().replace("\n", " ") if dsc and dsc != "N/A" else "") + dsc = "{} {} - {}".format(status.get("currservice_name", ""), + status.get("currservice_begin", ""), + status.get("currservice_end", "")) + self._service_epg_label.set_text(dsc) self._service_epg_label.set_tooltip_text(status.get("currservice_description", "")) def update_service_info(self): diff --git a/app/ui/main_window.glade b/app/ui/main_window.glade index 3bef38c6..2c2eabb3 100644 --- a/app/ui/main_window.glade +++ b/app/ui/main_window.glade @@ -2910,6 +2910,7 @@ Author: Dmitriy Yefremov True False center + end 0