From 9bb4f6d75dcd9584d3f9393287ee4abb3dcb7a15 Mon Sep 17 00:00:00 2001 From: DYefremov Date: Sat, 10 Feb 2024 21:05:47 +0300 Subject: [PATCH] fix XMLTV double load --- app/ui/epg/epg.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/ui/epg/epg.py b/app/ui/epg/epg.py index 5b45771b..2402f37f 100644 --- a/app/ui/epg/epg.py +++ b/app/ui/epg/epg.py @@ -230,6 +230,12 @@ class TabEpgCache(EpgCache): if self._canceled: return + if self._app.display_epg and self._xml_src == self._settings.epg_xml_source: + return + + self.load_data() + + def load_data(self): if os.path.isfile(self._path): if self._xml_src: # Difference calculation between the current time and file modification.