Migliorie al Menu Rapido

This commit is contained in:
Alhaziel01
2020-12-18 16:55:58 +01:00
parent e4aaeca3c8
commit 7e49da0998
7 changed files with 40 additions and 39 deletions

View File

@@ -100,7 +100,7 @@ class Main(xbmcgui.WindowXMLDialog):
if not menuentry.channel: menuentry.channel = prevchannel
item = xbmcgui.ListItem(menuentry.title)
if not submenu and menuentry.channel in ['news', 'channelselector', 'search', 'videolibrary']:
item.setProperty('sub', 'Controls/spinUp-Focus.png')
item.setProperty('sub', 'Shortcut/sub.png')
if menuentry.title != 'Redirect':
for key , value in json.loads(menuentry.tojson()).items():
item.setProperty(key, str(value))
@@ -115,7 +115,10 @@ class Main(xbmcgui.WindowXMLDialog):
if control_id == 32500:
action = self.getControl(32500).getSelectedItem().getProperty('run')
self.close()
xbmc.executebuiltin('ActivateWindow(10025, "plugin://plugin.video.kod/?' + base64.b64encode(action) + '")')
if self.getControl(32500).getSelectedItem().getProperty('folder') == 'False':
xbmc.executebuiltin('RunPlugin("plugin://plugin.video.kod/?' + base64.b64encode(action) + '")')
else:
xbmc.executebuiltin('ActivateWindow(10025, "plugin://plugin.video.kod/?' + base64.b64encode(action) + '")')