MythTV master
xbmcaddon.py
Go to the documentation of this file.
1# Tiny portion of Kodistubs to translate CU LRC to MythTV. If CU LRC
2# ever refers to other functions, simply copy them in here from
3# original Kodistubs and update where needed like below.
4
5from typing import Optional
6
7class Addon:
8
9 def __init__(self, id: Optional[str] = None) -> None:
10 pass
11
12 def getLocalizedString(self, id: int) -> str:
13 # only testall.py / scrapertest.py needs only 1 message from
14 # resources/language/resource.language.en_us/strings.po
15 if (id == 32163):
16 return "Testing: %s"
17 return "(%s)" % id
18
19 def getSettingBool(self, id: str) -> bool:
20 return True
21
22 def getSettingInt(self, id: str) -> int:
23 return 0
24
25 def getSettingString(self, id: str) -> str:
26 return ""
27
28 def getAddonInfo(self, id: str) -> str:
29 return ""
str getLocalizedString(self, int id)
Definition: xbmcaddon.py:12
str getSettingString(self, str id)
Definition: xbmcaddon.py:25
None __init__(self, Optional[str] id=None)
Definition: xbmcaddon.py:9
bool getSettingBool(self, str id)
Definition: xbmcaddon.py:19
int getSettingInt(self, str id)
Definition: xbmcaddon.py:22
str getAddonInfo(self, str id)
Definition: xbmcaddon.py:28