From a2652cef4b2aaa0b8574e93591b1fac223bc5a59 Mon Sep 17 00:00:00 2001 From: DYefremov Date: Wed, 25 Jan 2023 00:29:23 +0300 Subject: [PATCH] fix update EPG from alt service --- app/ui/main.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/ui/main.py b/app/ui/main.py index 559f0ebd..7f53baf6 100644 --- a/app/ui/main.py +++ b/app/ui/main.py @@ -4283,11 +4283,15 @@ class Application(Gtk.Application): return True def on_alt_selection(self, model, path, column): - if self._control_tool and self._control_tool.update_epg: + if self._page is Page.EPG: row = model[path][:] srv = self._services.get(row[Column.ALT_FAV_ID], None) if srv and srv.transponder or row[Column.ALT_TYPE] == BqServiceType.IPTV.name: - self._control_tool.on_services_update(srv.picon_id.rstrip(".png").replace("_", ":")) + ref = self.get_service_ref_data(srv) + if not ref: + return + + self.emit("fav-changed", ref) # ***************** Profile label ********************* #