2014-09-10, 21:17
Hi!
I create a playlist like this:
And then, I played the playlist like this:
But info like video art (thumbnail) doesn't work. Where I'm wrong?
I create a playlist like this:
Code:
def preparePlayList(self):
xbmc.log("preparePlayList(): Initialized")
self.playlist = xbmc.PlayList(xbmc.PLAYLIST_VIDEO)
self.playlist.clear()
for tracknumber, id in enumerate(self.Queue):
_id = self.Queue[id].id
title = self.Queue[id].title.encode('utf-8')
plot = self.Queue[id].plot.encode('utf-8')
filename = self.Queue[id].content['filename']
thumb = self.Queue[id].content['thumb']
listitem = xbmcgui.ListItem(title, str(_id), thumbnailImage = PATH_THUMB.format(thumb))
itemArgs = {
'title': title,
'plot': plot,
'tracknumber': tracknumber
}
listitem.setInfo('video', itemArgs)
self.playlist.add(url = PATH_MEDIA.format(filename), listitem = listitem)
self.dictItens[tracknumber] = listitem
And then, I played the playlist like this:
Code:
self.player.play(self.playlist)
self.player.playselected(tracknumber)
But info like video art (thumbnail) doesn't work. Where I'm wrong?