Menu rapido da Menu Contestuale
This commit is contained in:
@@ -22,7 +22,7 @@ from channelselector import get_thumb
|
|||||||
from core import channeltools
|
from core import channeltools
|
||||||
from core import trakt_tools, scrapertoolsV2
|
from core import trakt_tools, scrapertoolsV2
|
||||||
from core.item import Item
|
from core.item import Item
|
||||||
from platformcode import logger
|
from platformcode import logger, keymaptools
|
||||||
from platformcode import unify
|
from platformcode import unify
|
||||||
|
|
||||||
addon = xbmcaddon.Addon('plugin.video.kod')
|
addon = xbmcaddon.Addon('plugin.video.kod')
|
||||||
@@ -656,12 +656,17 @@ def set_context_commands(item, parent_item):
|
|||||||
context_commands = sorted(context_commands, key=lambda comand: comand[0])
|
context_commands = sorted(context_commands, key=lambda comand: comand[0])
|
||||||
# Menu Rapido
|
# Menu Rapido
|
||||||
context_commands.insert(0, (config.get_localized_string(60360),
|
context_commands.insert(0, (config.get_localized_string(60360),
|
||||||
|
"XBMC.RunPlugin(%s?%s)" % (sys.argv[0], Item(channel='side_menu',
|
||||||
|
action="open_shortcut_menu",
|
||||||
|
parent=parent_item.tourl()).tourl(
|
||||||
|
))))
|
||||||
|
context_commands.insert(1, (config.get_localized_string(70737),
|
||||||
"XBMC.Container.Update (%s?%s)" % (sys.argv[0], Item(channel='side_menu',
|
"XBMC.Container.Update (%s?%s)" % (sys.argv[0], Item(channel='side_menu',
|
||||||
action="open_menu",
|
action="open_menu",
|
||||||
parent=parent_item.tourl()).tourl(
|
parent=parent_item.tourl()).tourl(
|
||||||
))))
|
))))
|
||||||
if config.dev_mode():
|
if config.dev_mode():
|
||||||
context_commands.insert(1, ("item info",
|
context_commands.insert(2, ("item info",
|
||||||
"XBMC.Container.Update (%s?%s)" % (sys.argv[0], Item(action="itemInfo",
|
"XBMC.Container.Update (%s?%s)" % (sys.argv[0], Item(action="itemInfo",
|
||||||
parent=item.tojson()).tourl())))
|
parent=item.tojson()).tourl())))
|
||||||
return context_commands
|
return context_commands
|
||||||
|
|||||||
@@ -5660,3 +5660,7 @@ msgstr ""
|
|||||||
msgctxt "#70735"
|
msgctxt "#70735"
|
||||||
msgid "%s Special Episode Number"
|
msgid "%s Special Episode Number"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgctxt "#70737"
|
||||||
|
msgid "[B]SIDE MENU[/B]"
|
||||||
|
msgstr ""
|
||||||
@@ -5664,3 +5664,7 @@ msgstr "Numero dell'Episodio Speciale %s"
|
|||||||
msgctxt "#70736"
|
msgctxt "#70736"
|
||||||
msgid "Completed Serie"
|
msgid "Completed Serie"
|
||||||
msgstr "Serie Completa"
|
msgstr "Serie Completa"
|
||||||
|
|
||||||
|
msgctxt "#70737"
|
||||||
|
msgid "[B]SIDE MENU[/B]"
|
||||||
|
msgstr "[B]MENU LATERALE[/B]"
|
||||||
@@ -104,6 +104,10 @@ def open_menu(item):
|
|||||||
main.doModal()
|
main.doModal()
|
||||||
del main
|
del main
|
||||||
|
|
||||||
|
def open_shortcut_menu(item):
|
||||||
|
from platformcode import keymaptools
|
||||||
|
keymaptools.open_shortcut_menu()
|
||||||
|
|
||||||
|
|
||||||
class Main(xbmcgui.WindowXMLDialog):
|
class Main(xbmcgui.WindowXMLDialog):
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
|
|||||||
Reference in New Issue
Block a user