Bug ListItem.Cast problem again
#1
According to the wiki it should show a 'concatenated string of cast members of the currently selected movie' when used in dialogvideoinfo.xml but all I can get it to show is one actor.

Broken?
Reply
#2
Never worked, AFAICT
My skins:

Amber
Quartz

Reply
#3
Works here. Put it in a textbox or use label with wrapmultiline true.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#4
I see. Not very useful if it's formatted that way. This should be alternative to actors container and formatted as one liner IMHO
My skins:

Amber
Quartz

Reply
#5
Another label where we could do with different format options.

Certainly missing Jonathan and pieh.
Reply
#6
It is indeed presented as a list of names; perhaps an option of providing the separator would be possible?

ie

Code:
$INFO[ListItem.Cast(, )]    Actor 1, Actor 2, Actor 3, Actor 4
$INFO[ListItem.Cast( / )]    Actor 1 / Actor 2 / Actor 3 / Actor 4

In the meantime I'm pulling the names from the cast list (50) even though they include the role.

Code:
$INFO[Container(50).ListItem(0).Label], $INFO[Container(50).ListItem(1).Label], $INFO[Container(50).ListItem(2).Label], $INFO[Container(50).ListItem(3).Label], $INFO[Container(50).ListItem(4).Label]
Reply
#7
I've started working on this, but I feel like Kodi's info system makes it kinda hard to pass a parameter to the cast tag. I'm still unsure about which route to take. I could separate the cast tag from the other listitems and handle it individually or I could add an additional parameter to a bunch of functions. I'm still looking for the third, pretty option.
Image
Reply
#8
Without actually having looked at the code I'd go with an additional parameter for the separator that's optional to keep backward compatibility.
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
#9
Skins would be backwards compatible anyway. It's just that none of the solutions I've come up with so far are even close to what you'd call aesthetically pleasing. Then again, I still haven't fully figured out the depths of the info system. So this might just take a little while longer than I originally expected.
Image
Reply
#10
Hi,

I try to retrieve Cast name and put it in ViewsVideoLibrary.xml as I have Director name or writer.
I tried to put :
$INFO[Container(50).ListItem(0).Label]

replacing the writer name :

$INFO[ListItem.Writer]

But it does not work.

Thanks
Reply
#11
Only works for dialogvideoinfo.xml.
Reply
#12
So there is no way to have the casts in ViewsVideoLibrary.xml, as we have other movie info when browsing movies?
Reply
#13
No, as it would slow down the listing because of the extra database queries.
Reply
#14
Thanks Hitcher.
Do you know if I can do something (a trick) to have the casts displayed?
maybe loading a small dialogvideoinfo.xml with just the casts in a block in ViewsVideoLibrary.xml ?
Reply
#15
Go check out the Skin.Helper add-on, it has a cast solution.
SKIN: Aeon Madnox
RIP Schimi2k, we miss you.
When I grow up I want to be a skilled skinner
Thank me by ⬇ adding to my + reputation
Reply

Logout Mark Read Team Forum Stats Members Help
ListItem.Cast problem again0