diff --git a/app/settings.py b/app/settings.py index 6c9c494b..34c894bf 100644 --- a/app/settings.py +++ b/app/settings.py @@ -2,7 +2,7 @@ # # The MIT License (MIT) # -# Copyright (c) 2018-2023 Dmitriy Yefremov +# Copyright (c) 2018-2025 Dmitriy Yefremov # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal @@ -604,6 +604,15 @@ class Settings: def epg_xml_sources(self, value): self._cp_settings["epg_xml_sources"] = value + @property + def enable_epg_name_cache(self): + """ Enables additional name cache for EPG. """ + return self._settings.get("enable_epg_name_cache", False) + + @enable_epg_name_cache.setter + def enable_epg_name_cache(self, value): + self._settings["enable_epg_name_cache"] = value + # *********** FTP ************ # @property diff --git a/app/ui/settings_dialog.glade b/app/ui/settings_dialog.glade index 2b7d9374..0d536194 100644 --- a/app/ui/settings_dialog.glade +++ b/app/ui/settings_dialog.glade @@ -1,7 +1,7 @@ - + 8 @@ -3948,6 +3948,46 @@ Author: Dmitriy Yefremov 4 + + + True + False + False + Enables additional cache to display EPG for some IPTV channels imported from *.m3u. + + + True + False + start + True + Enable additional name cache for EPG + + + False + True + 0 + + + + + True + True + end + + + False + True + end + 1 + + + + + False + True + 5 + +