changed setting service info

This commit is contained in:
DYefremov
2019-10-28 11:03:09 +03:00
parent 0a16265aa2
commit 27f60bcea2
2 changed files with 5 additions and 2 deletions

View File

@@ -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):

View File

@@ -2910,6 +2910,7 @@ Author: Dmitriy Yefremov
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="justify">center</property>
<property name="ellipsize">end</property>
<property name="lines">0</property>
</object>
<packing>