2015-11-22, 22:52
Hello,
I looked up almost everywhere I could end I ended up here.
Im looking for solution for my plugin that would show number of episode in series on the right side label with title.
Like in TVShows
This is the code I want to add ListItem with the episode count
I looked up the ViewsVideoLibrary.xml file which describe the look of the list. Which tell that for MediaListView2 view:
Im using default skin: confluence
Is there something I'm doing wrong?
I readed that movies/tvshow are need to by populated with files (which I did)
I would like to have this view in my plugin.
I looked up almost everywhere I could end I ended up here.
Im looking for solution for my plugin that would show number of episode in series on the right side label with title.
Like in TVShows
This is the code I want to add ListItem with the episode count
Quote:handle = int(sys.argv[1])
xbmcplugin.setContent(addon_handle, 'tvshows')
li = xbmcgui.ListItem(label='Video', iconImage='DefaultVideo.png', label2='2')
li.setInfo(type="Video", infoLabels= { 'label2': 2, 'episode': 2 } )
li.setLabel2(str(2))
li.setProperty('TotalSeasons','2')
li.setProperty('TotalEpisodes','2')
li.setProperty('WatchedEpisodes','1')
li.setProperty('UnWatchedEpisodes','1')
li.setProperty('NumEpisodes','2')
li.setProperty('TVShows.Count','3')
xbmcplugin.addDirectoryItem(handle=handle, url=url, listitem=li, isFolder=True)
xbmcplugin.endOfDirectory(handle)
I looked up the ViewsVideoLibrary.xml file which describe the look of the list. Which tell that for MediaListView2 view:
Quote:<label>$INFO[ListItem.Label2]</label>
Im using default skin: confluence
Is there something I'm doing wrong?
I readed that movies/tvshow are need to by populated with files (which I did)
I would like to have this view in my plugin.