Riutilizzo connessione al db di kodi

This commit is contained in:
mac12m99
2021-05-15 14:10:53 +02:00
parent b37cf50261
commit 273fff7c48
4 changed files with 73 additions and 70 deletions

View File

@@ -506,7 +506,7 @@ def play_from_library(item):
path = filetools.join(config.get_runtime_path(), 'servers', item.server.lower() + '.json')
name = jsontools.load(open(path, "rb").read())['name']
if name.startswith('@'): name = config.get_localized_string(int(name.replace('@','')))
it = xbmcgui.ListItem('\n[B]%s[/B] %s - %s [%s]' % (name, quality, item.contentTitle, get_channel_parameters(item.contentChannel)['title']))
it = xbmcgui.ListItem('\n[B]%s[/B] %s - %s [%s]' % (name, quality, item.contentTitle, get_channel_parameters(item.channel).get('title', '')))
it.setArt({'thumb':item.thumbnail})
options.append(it)
else: