Cast and info about them
#1
Hello,

im using infoLabel('Cast', castList)
for adding cast members

I know there is also 'CastAndRole'.

For me infoLabel dont work, I dont see any cast members.
Is there other way to add them ?
Could someone post a working code, im on kodi 15.2
Reply
#2
Add the "cast" key to the infolabels dictionary and set them using Listitem.setInfo() : http://mirrors.kodi.tv/docs/python-docs/...em-setInfo
Reply
#3
that did fix the problem, now I need to know how to set picture,name,description for cast :-) Any clue?
Reply
#4
This work fine for adding info:
listCast = []
listCastAndRole = []
listCast.append('test1')
listCastAndRole.append(('test1', 'test2'))
cast2 = [listCast, listCastAndRole]
and adding both to cast and castandrole.

But where is place for picture and descibtion ?
Reply
#5
This is relevant to my interests
Reply
#6
I know this is not what you ask, but here is what worked for me. Because I didn't need the actors stored with each movie, I could do a seperate call to get the actors with images returned in the "main" infolabels, instead of the cast infolabel (Here is the complete code incase someone stumbles in here and needs it) :

Code:
q = xbmc.executeJSONRPC('{ "jsonrpc": "2.0", "method": "VideoLibrary.GetMovieDetails", "params": {"movieid": %d, "properties": ["cast"]}, "id": 1 }' % int(MOVIEDBID))
q = unicode(q, 'utf-8', errors='ignore')
j = json.loads(q)
m = j['result']['moviedetails']

for item in m['cast']:
    n = item['name']
    r = item['role']
    a = item['thumbnail']
    li = xbmcgui.ListItem(label=n, label2=r, iconImage=a)
    listing.append(('', li, False))
        
xbmcplugin.addDirectoryItems(addon_handle, listing)
xbmcplugin.endOfDirectory(addon_handle)

p.s. Good luck with getting the cast artwork into the main movies list. As I read it, it has been a troubled area for a long time. But I could easily be wrong.. Smile
Reply
#7
Oh. Btw. I did not see any more data about the cast any where?!! No bio.. no nothing. Strange?
Reply
#8
I didn't get clear answerd here: http://forum.kodi.tv/showthread.php?tid=118845 but it looks like its still impossible ?
Reply
#9
Any one ?
Reply

Logout Mark Read Team Forum Stats Members Help
Cast and info about them0