mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-06-16 21:26:14 +00:00
fix: return emby nodes in skinshortcuts dialog
This commit is contained in:
parent
016db1c755
commit
b0120aefd5
2 changed files with 10 additions and 3 deletions
|
@ -57,12 +57,15 @@ def settings(setting, value=None):
|
|||
if value is not None:
|
||||
addon.setSetting(setting, value)
|
||||
else:
|
||||
return addon.getSetting(setting)
|
||||
return addon.getSetting(setting) #returns unicode object
|
||||
|
||||
def language(stringid):
|
||||
# Central string retrieval
|
||||
addon = xbmcaddon.Addon(id='plugin.video.emby')
|
||||
string = addon.getLocalizedString(stringid)
|
||||
string = addon.getLocalizedString(stringid) #returns unicode object
|
||||
if isinstance(string, unicode): print "EMBY LANGUAGE STRING IS UNICODE !"
|
||||
elif isinstance(string, txt): print "EMBY LANGUAGE STRING IS TEXT !"
|
||||
else: print "EMBY LANGUAGE STRING IS UNKNOWN !"
|
||||
|
||||
return string
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue