diff --git a/app/settings.py b/app/settings.py index 8f7a08e7..2880ea26 100644 --- a/app/settings.py +++ b/app/settings.py @@ -82,6 +82,7 @@ class Defaults(Enum): BACKUP_BEFORE_SAVE = True V5_SUPPORT = False UNLIMITED_COPY_BUFFER = False + EXTENSIONS_SUPPORT = False FORCE_BQ_NAMES = False HTTP_API_SUPPORT = True ENABLE_YT_DL = False @@ -615,6 +616,14 @@ class Settings: def unlimited_copy_buffer(self, value): self._settings["unlimited_copy_buffer"] = value + @property + def extensions_support(self): + return self._settings.get("extensions_support", Defaults.EXTENSIONS_SUPPORT.value) + + @extensions_support.setter + def extensions_support(self, value): + self._settings["extensions_support"] = value + @property def force_bq_names(self): return self._settings.get("force_bq_names", Defaults.FORCE_BQ_NAMES.value) diff --git a/app/ui/lang/be/LC_MESSAGES/demon-editor.mo b/app/ui/lang/be/LC_MESSAGES/demon-editor.mo index c68bee5a..ec12ddd8 100644 Binary files a/app/ui/lang/be/LC_MESSAGES/demon-editor.mo and b/app/ui/lang/be/LC_MESSAGES/demon-editor.mo differ diff --git a/app/ui/lang/de/LC_MESSAGES/demon-editor.mo b/app/ui/lang/de/LC_MESSAGES/demon-editor.mo index 9fd10219..b0f045d5 100644 Binary files a/app/ui/lang/de/LC_MESSAGES/demon-editor.mo and b/app/ui/lang/de/LC_MESSAGES/demon-editor.mo differ diff --git a/app/ui/lang/ru/LC_MESSAGES/demon-editor.mo b/app/ui/lang/ru/LC_MESSAGES/demon-editor.mo index f699ceea..d8f1fd04 100644 Binary files a/app/ui/lang/ru/LC_MESSAGES/demon-editor.mo and b/app/ui/lang/ru/LC_MESSAGES/demon-editor.mo differ diff --git a/app/ui/main.py b/app/ui/main.py index 48b4fee0..7701e43e 100644 --- a/app/ui/main.py +++ b/app/ui/main.py @@ -675,7 +675,7 @@ class Application(Gtk.Application): self.on_epg_list_configuration, self.on_iptv_list_configuration, self.on_remove_all_unavailable): iptv_elem.bind_property("sensitive", self.set_action(h.__name__, h, False), "enabled") - if self._settings.is_enable_experimental: + if self._settings.extensions_support: self.init_extensions(builder) def init_extensions(self, builder): diff --git a/app/ui/settings_dialog.glade b/app/ui/settings_dialog.glade index 73db6f8e..071badb2 100644 --- a/app/ui/settings_dialog.glade +++ b/app/ui/settings_dialog.glade @@ -3029,6 +3029,45 @@ Author: Dmitriy Yefremov 1 + + + True + False + False + + + True + False + start + True + Enable extensions support + + + False + True + 0 + + + + + True + True + end + + + False + True + end + 1 + + + + + False + True + 2 + + True @@ -3138,7 +3177,7 @@ Author: Dmitriy Yefremov False True - 2 + 3 @@ -3178,7 +3217,7 @@ Author: Dmitriy Yefremov False True - 3 + 4 diff --git a/app/ui/settings_dialog.py b/app/ui/settings_dialog.py index e5be5746..0dc9d331 100644 --- a/app/ui/settings_dialog.py +++ b/app/ui/settings_dialog.py @@ -181,6 +181,7 @@ class SettingsDialog: self._force_bq_name_switch = builder.get_object("force_bq_name_switch") self._support_ver5_switch = builder.get_object("support_ver5_switch") self._unlimited_buffer_switch = builder.get_object("unlimited_buffer_switch") + self._enable_extensions_switch = builder.get_object("enable_extensions_switch") self._support_http_api_switch = builder.get_object("support_http_api_switch") self._enable_yt_dl_switch = builder.get_object("enable_yt_dl_switch") self._enable_update_yt_dl_switch = builder.get_object("enable_update_yt_dl_switch") @@ -345,6 +346,7 @@ class SettingsDialog: self._enable_exp_switch.set_active(self._settings.is_enable_experimental) self._support_ver5_switch.set_active(self._settings.v5_support) self._unlimited_buffer_switch.set_active(self._settings.unlimited_copy_buffer) + self._enable_extensions_switch.set_active(self._settings.extensions_support) self._use_http_switch.set_active(self._settings.use_http) self._remove_unused_bq_switch.set_active(self._settings.remove_unused_bouquets) self._keep_power_mode_switch.set_active(self._settings.keep_power_mode) @@ -429,6 +431,7 @@ class SettingsDialog: self._ext_settings.extra_color = self._extra_color_button.get_rgba().to_string() self._ext_settings.v5_support = self._support_ver5_switch.get_active() self._ext_settings.unlimited_copy_buffer = self._unlimited_buffer_switch.get_active() + self._ext_settings.extensions_support = self._enable_extensions_switch.get_active() self._ext_settings.use_http = self._use_http_switch.get_active() self._ext_settings.remove_unused_bouquets = self._remove_unused_bq_switch.get_active() self._ext_settings.keep_power_mode = self._keep_power_mode_switch.get_active() @@ -516,6 +519,7 @@ class SettingsDialog: if not state: self._support_ver5_switch.set_active(state) self._unlimited_buffer_switch.set_active(state) + self._enable_extensions_switch.set_active(state) self._enable_send_to_switch.set_active(state) self._enable_yt_dl_switch.set_active(state) diff --git a/build/linux/deb/usr/share/locale/be/LC_MESSAGES/demon-editor.mo b/build/linux/deb/usr/share/locale/be/LC_MESSAGES/demon-editor.mo index c68bee5a..ec12ddd8 100644 Binary files a/build/linux/deb/usr/share/locale/be/LC_MESSAGES/demon-editor.mo and b/build/linux/deb/usr/share/locale/be/LC_MESSAGES/demon-editor.mo differ diff --git a/build/linux/deb/usr/share/locale/de/LC_MESSAGES/demon-editor.mo b/build/linux/deb/usr/share/locale/de/LC_MESSAGES/demon-editor.mo index 9fd10219..b0f045d5 100644 Binary files a/build/linux/deb/usr/share/locale/de/LC_MESSAGES/demon-editor.mo and b/build/linux/deb/usr/share/locale/de/LC_MESSAGES/demon-editor.mo differ diff --git a/build/linux/deb/usr/share/locale/ru/LC_MESSAGES/demon-editor.mo b/build/linux/deb/usr/share/locale/ru/LC_MESSAGES/demon-editor.mo index f699ceea..d8f1fd04 100644 Binary files a/build/linux/deb/usr/share/locale/ru/LC_MESSAGES/demon-editor.mo and b/build/linux/deb/usr/share/locale/ru/LC_MESSAGES/demon-editor.mo differ diff --git a/po/be/demon-editor.po b/po/be/demon-editor.po index 28df5b0f..955ed116 100644 --- a/po/be/demon-editor.po +++ b/po/be/demon-editor.po @@ -1434,3 +1434,6 @@ msgstr "Пачатак" msgid "End time" msgstr "Сканчэнне" + +msgid "Enable extensions support" +msgstr "Уключыць падтрымку пашырэнняў" diff --git a/po/de/demon-editor.po b/po/de/demon-editor.po index c348d15a..c7c2d3d9 100644 --- a/po/de/demon-editor.po +++ b/po/de/demon-editor.po @@ -1448,3 +1448,6 @@ msgstr "Anfangszeit" msgid "End time" msgstr "Endzeit" + +msgid "Enable extensions support" +msgstr "Erweiterungen Unterstützung aktivieren" diff --git a/po/ru/demon-editor.po b/po/ru/demon-editor.po index 449b4f40..d8b7e73d 100644 --- a/po/ru/demon-editor.po +++ b/po/ru/demon-editor.po @@ -1431,3 +1431,6 @@ msgstr "Начало" msgid "End time" msgstr "Окончание" + +msgid "Enable extensions support" +msgstr "Включить поддержку расширений"