Release plugin.video.themoviedb.helper - Access to TheMovieDb API for Skinners
@jurialmunkey , thanks for making this plugin better and better!

What visibility condition should I set (or what should I do) for my custom cast panel when the info is coming from the plugin service monitor, but it has not finished updating? Right now I have only numitems > 0 and isupdating for the panel, and what usually happens is that the first time I press Info on a widget item from the plugin, I get no cast.  Then, the second time I press Info on that same item, the cast will appear, since the monitor has finished updating the info and it is most likely cached also.

Thanks for your help.

Regards,

Bart

EDIT: @jurialmunkey, this is what I have for the custom cast right now.  The results are inconsistent, meaning for some widget items the cast is shown, for others it is not.

xml:

<!-- Custom Cast panel item: either container 50 (default) or container 5100 (tmdb online info) -->
    <include name="CustomCastItemOnline">
        <param name="CastListItemID" />
        <definition>
            <item>
                <label>$INFO[Window(Home).Property(TMDbHelper.ListItem.Cast.$PARAM[CastListItemID].Name)]</label>
                <label2>$INFO[Window(Home).Property(TMDbHelper.ListItem.Cast.$PARAM[CastListItemID].Role)]</label2>
                <icon>$INFO[Window(Home).Property(TMDbHelper.ListItem.Cast.$PARAM[CastListItemID].Thumb)]</icon>
                <visible>!String.IsEmpty(Window(Home).Property(TMDbHelper.ListItem.Cast.$PARAM[CastListItemID].Name))</visible>
            </item>
        </definition>
    </include>
    <!-- Custom Cast panel items -->
    <include name="CustomCastListContentOnline">
        <include content="CustomCastItemOnline">
            <param name="CastListItemID">1</param>
        </include>
        <include content="CustomCastItemOnline">
            <param name="CastListItemID">2</param>
        </include>
        <include content="CustomCastItemOnline">
            <param name="CastListItemID">3</param>
        </include>
        <include content="CustomCastItemOnline">
            <param name="CastListItemID">4</param>
        </include>
        <include content="CustomCastItemOnline">
            <param name="CastListItemID">5</param>
    </include>
    <!-- Cast Panel: Always use a custom cast to have control over actions -->
    <include name="CustomCast">
        <control type="group" id="90049">
            <top>44</top>
            <height>44</height>
            <visible>Container(90050).IsUpdating | Integer.IsGreater(Container(90050).NumItems,0) | String.IsEmpty(Window(Home).Property(TMDbHelper.IsUpdating))</visible>
            <control type="label">
                <left>8</left>
                <top>0</top>
                <height>30</height>
                <label>$LOCALIZE[206] $INFO[Container(90050).NumItems,(,)]</label>
                <font>ListDetails</font>
            </control>
            <control type="image" description="Line Split">
                <top>40</top>
                <left>10</left>
                <width>1180</width>
                <height>1</height>
                <texture>img/LineL.png</texture>
                <aspectratio>stretch</aspectratio>
            </control>
        </control>    
        <control type="panel" id="90050">
            <top>44</top>
            <left>10</left>
            <width>1180</width>
            <height>410</height>
            <onup>9000</onup>
            <onback>9000</onback>
            <preloaditems>2</preloaditems>
            <scrolltime tween="quadratic" easing="out">300</scrolltime>
            <orientation>horizontal</orientation>
            <visible>Container(90050).IsUpdating | Integer.IsGreater(Container(90050).NumItems,0) | String.IsEmpty(Window(Home).Property(TMDbHelper.IsUpdating))</visible>
            <!-- select online tmdb search or local search -->
            <onclick>SetProperty(Dialog.1.Label,$LOCALIZE[32018])</onclick>
            <onclick>SetProperty(Dialog.1.BuiltIn,RunScript(plugin.video.themoviedb.helper,add_query=$INFO[Container(90050).ListItem.Label],type=person,call_id=1129,prevent_del))</onclick>
            <onclick>SetProperty(Dialog.2.Label,$LOCALIZE[32017])</onclick>
            <onclick>SetProperty(Dialog.2.BuiltIn,Skin.SetString(CustomSearchTerm,$ESCINFO[Container(90050).ListItem.Label])||Dialog.Close(all)||ActivateWindow(1122))</onclick>
            <onclick>RunScript(script.embuary.helper,action=createselect,header=$LOCALIZE[137])</onclick>
            <include content="ActorLayout">
                <param name="viewid">90050</param>
            </include>
            <content>
                <include>CustomCastListContentOnline</include>
            </content>
        </control>
    </include>
Reply


Messages In This Thread
RE: TheMovieDB Helper - by jurialmunkey - 2019-07-31, 11:47
RE: plugin.video.themoviedb.helper - Access to TheMovieDb API for Skinners - by bsoriano - 2019-12-29, 15:36
Logout Mark Read Team Forum Stats Members Help
plugin.video.themoviedb.helper - Access to TheMovieDb API for Skinners2