sostituito NBSP
This commit is contained in:
@@ -441,13 +441,13 @@ def set_view_mode(item, parent_item):
|
||||
def set_infolabels(listitem, item, player=False):
|
||||
"""
|
||||
Method to pass the information to the listitem (see tmdb.set_InfoLabels())
|
||||
item.infoLabels is a dictionary with the key / value pairs described in:
|
||||
http://mirrors.xbmc.org/docs/python-docs/14.x-helix/xbmcgui.html#ListItem-setInfo
|
||||
https://kodi.wiki/view/InfoLabels
|
||||
@param listitem: xbmcgui.ListItem object
|
||||
@type listitem: xbmcgui.ListItem
|
||||
@param item: Item object that represents a movie, series or chapter
|
||||
@type item: item
|
||||
item.infoLabels is a dictionary with the key / value pairs described in:
|
||||
http://mirrors.xbmc.org/docs/python-docs/14.x-helix/xbmcgui.html#ListItem-setInfo
|
||||
https://kodi.wiki/view/InfoLabels
|
||||
@param listitem: xbmcgui.ListItem object
|
||||
@type listitem: xbmcgui.ListItem
|
||||
@param item: Item object that represents a movie, series or chapter
|
||||
@type item: item
|
||||
"""
|
||||
|
||||
infoLabels_dict = {'aired': 'aired', 'album': 'album', 'artist': 'artist', 'cast': 'cast',
|
||||
@@ -482,31 +482,31 @@ def set_infolabels(listitem, item, player=False):
|
||||
def set_context_commands(item, item_url, parent_item, **kwargs):
|
||||
"""
|
||||
Function to generate context menus.
|
||||
1. Based on the data in item.context
|
||||
a. Old method item.context type str separating options by "|" (example: item.context = "1 | 2 | 3")
|
||||
(only predefined)
|
||||
b. List method: item.context is a list with the different menu options:
|
||||
- Predefined: A predefined option will be loaded with a name.
|
||||
item.context = ["1", "2", "3"]
|
||||
1. Based on the data in item.context
|
||||
a. Old method item.context type str separating options by "|" (example: item.context = "1 | 2 | 3")
|
||||
(only predefined)
|
||||
b. List method: item.context is a list with the different menu options:
|
||||
- Predefined: A predefined option will be loaded with a name.
|
||||
item.context = ["1", "2", "3"]
|
||||
|
||||
- dict (): The current item will be loaded modifying the fields included in the dict () in case of
|
||||
modify the channel and action fields these will be saved in from_channel and from_action.
|
||||
item.context = [{"title": "Name of the menu", "action": "action of the menu", "channel": "menu channel"}, {...}]
|
||||
- dict (): The current item will be loaded modifying the fields included in the dict () in case of
|
||||
modify the channel and action fields these will be saved in from_channel and from_action.
|
||||
item.context = [{"title": "Name of the menu", "action": "action of the menu", "channel": "menu channel"}, {...}]
|
||||
|
||||
2. Adding options according to criteria
|
||||
Options can be added to the context menu to items that meet certain conditions.
|
||||
2. Adding options according to criteria
|
||||
Options can be added to the context menu to items that meet certain conditions.
|
||||
|
||||
|
||||
3. Adding options to all items
|
||||
Options can be added to the context menu for all items
|
||||
3. Adding options to all items
|
||||
Options can be added to the context menu for all items
|
||||
|
||||
4. You can disable the context menu options by adding a command 'no_context' to the item.context.
|
||||
The options that Kodi, the skin or another added add to the contextual menu cannot be disabled.
|
||||
4. You can disable the context menu options by adding a command 'no_context' to the item.context.
|
||||
The options that Kodi, the skin or another added add to the contextual menu cannot be disabled.
|
||||
|
||||
@param item: element that contains the contextual menus
|
||||
@type item: item
|
||||
@param parent_item:
|
||||
@type parent_item: item
|
||||
@param item: element that contains the contextual menus
|
||||
@type item: item
|
||||
@param parent_item:
|
||||
@type parent_item: item
|
||||
"""
|
||||
context_commands = []
|
||||
# num_version_xbmc = config.get_platform(True)['num_version']
|
||||
@@ -821,9 +821,9 @@ def show_channel_settings(**kwargs):
|
||||
def show_video_info(*args, **kwargs):
|
||||
"""
|
||||
It shows a window with the info of the video.
|
||||
The parameters passed to it can be seen in the method that is called
|
||||
The parameters passed to it can be seen in the method that is called
|
||||
|
||||
@return: returns the window with the elements
|
||||
@return: returns the window with the elements
|
||||
@rtype: InfoWindow
|
||||
"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user