2019-12-30, 01:07
(2019-12-29, 23:21)jurialmunkey Wrote: @bsoriano - try this:
Code:<visible>[Container(90050).IsUpdating | Integer.IsGreater(Container(90050).NumItems,0)] + String.IsEmpty(Window(Home).Property(TMDbHelper.IsUpdating)) + !String.IsEmpty(Window(Home).Property(TMDbHelper.ListItem.Cast.1.Name))</visible>
Why don't you just use the Cast plugin path though?
<content>$VAR[TMDb_Cast]</content>
xml:
<variable name="TMDb_Cast">
<value condition="String.IsEqual(ListItem.DBType,movie) + !String.IsEmpty(ListItem.IMDBNumber) + String.StartsWith(ListItem.IMDBNumber,tt)">plugin://plugin.video.themoviedb.helper?info=cast&type=movie&imdb_id=$INFO[ListItem.IMDBNumber]</value>
<value condition="String.IsEqual(ListItem.DBType,movie)">plugin://plugin.video.themoviedb.helper?info=cast&type=movie&query=$INFO[ListItem.Title]</value>
<value condition="String.IsEqual(ListItem.DBType,season) | String.IsEqual(ListItem.DBType,episode) | String.IsEqual(ListItem.DBType,tvshow)">plugin://plugin.video.themoviedb.helper?info=cast&type=tv&query=$INFO[ListItem.TvShowTitle]</value>
</variable>
@jurialmunkey, thank you! I had not thought of the plugin path for cast. If I do that, then the visibility condition would be just numitems > 0 or isupdating, correct?
Thanks again.
Regards,
Bart
EDIT: @jurialmunkey , using the cast plugin path works well, but it seems the plugin does not fill listitem.label2 for the character/role. What is the property where the plugin stores the character/role for the cast?