add info to context menu

This commit is contained in:
Shaun
2019-08-25 08:44:25 +10:00
parent a389061585
commit 02df6b0f53
2 changed files with 10 additions and 0 deletions

View File

@@ -913,3 +913,7 @@ msgstr ""
msgctxt "#30400"
msgid "Cache images interval minutes (0 = disabled)"
msgstr ""
msgctxt "#30401"
msgid "Info"
msgstr ""

View File

@@ -389,6 +389,10 @@ def show_menu(params):
li.setProperty('menu_id', 'hide')
action_items.append(li)
li = xbmcgui.ListItem(string_load(30401))
li.setProperty('menu_id', 'info')
action_items.append(li)
#xbmcplugin.endOfDirectory(int(sys.argv[1]), cacheToDisc=False)
action_menu = ActionMenu("ActionMenu.xml", PLUGINPATH, "default", "720p")
@@ -505,6 +509,8 @@ def show_menu(params):
elif selected_action == "refresh_images":
CacheArtwork().delete_cached_images(item_id)
elif selected_action == "info":
xbmc.executebuiltin("Action(info)")
def populate_listitem(item_id):
log.debug("populate_listitem: {0}", item_id)