what is infolabel ?????
#1
hi good morning can any one explaine what is infolabel and what is there usesHuh really i can't found a enough answers on internetAngry
Reply
#2
As per http://kodi.wiki/view/Python_development:

Kodi uses InfoLabels to display media file information (such as Artist and Album for a song, or Title and Cast list for a movie or TV show). This information shows up in the browsing menu (when using Library Mode), as well as in the Now Playing details when the media player is active. You can get the currently-playing InfoLabel using the getInfoLabel function in xbmc. You can also set the InfoLabel information for any menu items you create in a plugin, making a much more versatile user experience.

In the context of addons, when you add directoriesItems (http://mirrors.kodi.tv/docs/python-docs/...ectoryItem) to your plugin you basically create and add Listitems (http://mirrors.kodi.tv/docs/python-docs/...l#ListItem). Infolabels are aditional information you can set depending on the content type (http://mirrors.kodi.tv/docs/python-docs/...setContent) of the items you are adding. They are added to the listitem using Listitem().SetInfo() (http://mirrors.kodi.tv/docs/python-docs/...em-setInfo).

A simple example. Let's say you want to add the "Avatar" movie with python:

Code:
import xbmcplugin,xbmcgui,sys

infolabels = {'title':'Avatar','year':2009,'code':'tt0499549','originaltitle':'Avatar','plot':'A paraplegic marine dispatched to the moon Pandora on a unique mission becomes torn between following his orders and protecting the world he feels is his home.'} #plus any other information you find usefull
video_location = 'C:\\myvideofolder\avatar.mkv'

my_listitem = xbmcgui.ListItem(infolabels['title'])
my_listitem.setPath(video_location)
my_listitem.setInfo( type="Video", infoLabels=infolabels)

xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]),url=video_location,listitem=my_listitem,isFolder=False)
xbmcplugin.setContent(int(sys.argv[1]), 'movies')
Reply
#3
One more of those spam help threads and I will ban you, dont.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#4
what you talk about wich spam
Reply

Logout Mark Read Team Forum Stats Members Help
what is infolabel ?????0