From 17c70a24c5f90cf64f9f04f6dae463cb5bb6fbac Mon Sep 17 00:00:00 2001 From: Roman Nikolaev Date: Tue, 6 Feb 2024 23:37:45 +0300 Subject: [PATCH] XbmcSettings: init Plugin --- src/resources/lib/xbmc_settings.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/resources/lib/xbmc_settings.py b/src/resources/lib/xbmc_settings.py index a0055d0..a69c6ef 100644 --- a/src/resources/lib/xbmc_settings.py +++ b/src/resources/lib/xbmc_settings.py @@ -1,9 +1,15 @@ import json - import xbmc +from typing import TYPE_CHECKING + +if TYPE_CHECKING: + from resources.lib.plugin import Plugin class XbmcSettings: + def __init__(self, plugin: "Plugin") -> None: + self.plugin = plugin + def get_setting(self, setting_id: str): # https://kodi.wiki/view/JSON-RPC_API/v13#Settings.GetSettingValue try: