From ff8d4e53211a835aa32ea8b05c1e521b195ed055 Mon Sep 17 00:00:00 2001 From: DYefremov Date: Fri, 17 Feb 2023 20:17:17 +0300 Subject: [PATCH] fix ref assignment from XML source (#154) --- app/ui/epg/epg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/ui/epg/epg.py b/app/ui/epg/epg.py index 97dfbe97..4d0a2057 100644 --- a/app/ui/epg/epg.py +++ b/app/ui/epg/epg.py @@ -676,7 +676,7 @@ class EpgDialog: data = ":".join(ref_data[3:7]) pos, ch_id = srv.num pos = pos or " " - self._services_model.append((srv.name, pos, data, "_".join(ref_data), ch_id)) + self._services_model.append((srv.name, pos, data, "_".join(ref_data).rstrip("_"), ch_id)) if index % factor == 0: yield True @@ -804,7 +804,7 @@ class EpgDialog: fav_id_data[3:7] = data[-3].split(":") if data[-2]: - row[Column.FAV_POS] = data[-1] + row[Column.FAV_POS] = data[-2] p_data = data[-2].split("_") if p_data: fav_id_data[2] = p_data[2]