Release plugin.video.themoviedb.helper - Access to TheMovieDb API for Skinners
(2019-08-21, 23:51)jurialmunkey Wrote: @bsoriano - Should be added now. Anything with a &query= param, the plugin will check if a "/" separator is present and split the query at that point. Only the first item will be used.
@jurialmunkey , thank you! I did some tests and it works.  

I am having an issue which is most likely unrelated.  I have mostly adapted successfully your code for Amber.  In the fake person info dialog, the issue I am having is that if I press back (hidden list 3100 is focused) nothing happens.  I need to press back a second time for the dialog to be closed.  I verified that the home window property tmdbhelper.path is not empty, so the dialog should close with the del_path call to the plugin.

I am not sure what part of the code should I post for you to take a look, if you would be so kind.  Here is what I have so far for the dialog:

xml:

<?xml version="1.0" encoding="UTF-8"?>
<window type="window" id="1128">
    <defaultcontrol always="true">9999</defaultcontrol>
    <controls>
    
        <control type="image">
            <width>1920</width>
            <height>1080</height>
            <texture>img/BlackDot.png</texture>
            <aspectratio>scale</aspectratio>
        </control>
        <control type="image">
            <width>1920</width>
            <height>1080</height>
            <texture background="true">special://skin/backgrounds/default.jpg</texture>
            <aspectratio>scale</aspectratio>
        </control>
        <include content="BackgroundOverlay">
            <param name="parentid" value="9999"/>
        </include>
    
        <!-- Wait until plugin has populated person info.  If it is not a person, just show info. -->
        <control type="list" id="9999">
            <onfocus condition="!Integer.IsEqual(Container(9999).NumItems,0) + !Container(9999).IsUpdating + !String.IsEmpty(Window(Home).Property(TMDbHelper.Path.Current)) + !String.Contains(Window(Home).Property(TMDbHelper.Path.Current),type=person)">Action(Info)</onfocus>
            <onfocus condition="!Integer.IsEqual(Container(9999).NumItems,0) + !Container(9999).IsUpdating + !String.IsEmpty(Window(Home).Property(TMDbHelper.Path.Current)) + String.Contains(Window(Home).Property(TMDbHelper.Path.Current),type=person)">SetFocus(3100)</onfocus>
            <onfocus condition="[Integer.IsEqual(Container(9999).NumItems,0) | Container(9999).IsUpdating] + !String.IsEmpty(Window(Home).Property(TMDbHelper.Path.Current))">AlarmClock(doinfo,SetFocus(9999),00:01,silent)</onfocus>
            <onfocus condition="String.IsEmpty(Window(Home).Property(TMDbHelper.Path.Current))">Action(Back)</onfocus>
            <itemlayout />
            <focusedlayout />
            <content limit="1" target="videos">$INFO[Window(Home).Property(TMDbHelper.Path.Current)]</content>
        </control>

        <!-- Person Info -->
        <control type="group">
            <top>0</top>
            <left>0</left>
            <visible>String.Contains(Window(Home).Property(TMDbHelper.Path.Current),type=person) + !Control.HasFocus(9999)</visible>
                        
            <include content="ShadowedImage">
                <param name="top">24</param>
                <param name="left">24</param>
                <param name="width">619</param>
                <param name="height">960</param>
                <param name="shadowoffset">16</param>
                <param name="texture">$INFO[Container(9999).ListItemAbsolute(0).Art(poster)]</param>
                <param name="visibility">true</param>
            </include>
                        
            <control type="group" id="300">
                <posx>700</posx>
                <posy>60</posy>
                <control type="label" description="Person name">
                    <posy>-45</posy>
                    <width>950</width>
                    <height>60</height>
                    <font>InfoTitle</font>
                    <textcolor>Highlight</textcolor>
                    <align>left</align>
                    <label>$INFO[Container(9999).ListItemAbsolute(0).Label]</label>
                </control>
                <control type="image" description="Line Split">
                    <posy>23</posy>
                    <width>1180</width>
                    <height>1</height>
                    <texture>img/LineL.png</texture>
                    <aspectratio>stretch</aspectratio>
                </control>
                <control type="image" description="Line Split">
                    <posy>83</posy>
                    <width>1180</width>
                    <height>1</height>
                    <texture>img/LineL.png</texture>
                    <aspectratio>stretch</aspectratio>
                </control>                
                <control type="textbox" id="900031" description="Biography">
                    <include>VisibleFadeEffectDelay</include>
                    <posy>90</posy>
                    <left>5</left>
                    <width>620</width>
                    <height>355</height>
                    <align>justify</align>
                    <font>InfoPlot</font>
                    <textcolor>$VAR[InfoPlotTextColor]</textcolor>
                    <shadowcolor>LiteShadow</shadowcolor>
                    <label>$INFO[Container(9999).ListItemAbsolute(0).Property(biography)]</label>
                </control>
                <control type="radiobutton" id="90003">
                    <posy>447</posy>
                    <left>588.3</left>
                    <ondown>9100</ondown>
                    <onright>9009</onright>
                    <align>center</align>
                    <aligny>center</aligny>
                    <textureradioonfocus colordiffuse="Black">icons/dots7.png</textureradioonfocus>
                    <textureradioonnofocus>icons/dots7.png</textureradioonnofocus>
                    <texturefocus border="4" colordiffuse="Highlight">img/WhiteRoundedST2.png</texturefocus>
                    <texturenofocus border="4">img/WhiteRoundedT.png</texturenofocus>
                    <width>37</width>
                    <height>17</height>
                    <radiowidth>37</radiowidth>
                    <radioheight>37</radioheight>
                    <radioposx>0.1</radioposx>
                    <radioposy>0</radioposy>
                    <font></font>
                    <selected>true</selected>
                    <onclick>SetProperty(TextViewerHeader,$ESCINFO[Container(9999).ListItemAbsolute(0).Label],Home)</onclick>
                    <onclick>SetProperty(TextViewerContent,$ESCINFO[Container(9999).ListItemAbsolute(0).Property(biography)],Home)</onclick>
                    <onclick>ActivateWindow(1124)</onclick>
                </control>
                <control type="image" description="Line Split">
                    <posy>90</posy>
                    <left>637</left>
                    <width>1</width>
                    <height>375</height>
                    <texture>img/LineL.png</texture>
                    <aspectratio>stretch</aspectratio>
                </control>                
                <control type="panel" id="9009">
                    <include>VisibleFadeEffectDelay</include>
                    <include>List_9009_Commons</include>
                    <onup>9009</onup>
                    <ondown>9009</ondown>
                    <onleft>90003</onleft>
                    <content>
                        <item>
                            <label>$LOCALIZE[32082]:</label>
                            <label2>$INFO[Container(9999).ListItemAbsolute(0).Property(Birthday)]</label2>
                            <onclick>noop</onclick>
                            <visible>!String.IsEmpty(Container(9999).ListItemAbsolute(0).Property(Birthday))</visible>
                        </item>
                        <item>
                            <label>$LOCALIZE[32083]:</label>
                            <label2>$INFO[Container(9999).ListItemAbsolute(0).Property(Born)]</label2>
                            <onclick>noop</onclick>
                            <visible>!String.IsEmpty(Container(9999).ListItemAbsolute(0).Property(Born))</visible>
                        </item>
                        <item>
                            <label>$LOCALIZE[32084]:</label>
                            <label2>$INFO[Container(9999).ListItemAbsolute(0).Property(Age)]</label2>
                            <onclick>noop</onclick>
                            <visible>!String.IsEmpty(Container(9999).ListItemAbsolute(0).Property(Age))</visible>
                        </item>
                        <item>
                            <label>$LOCALIZE[32085]:</label>
                            <label2>$INFO[Container(9999).ListItemAbsolute(0).Property(Deathday)]</label2>
                            <onclick>noop</onclick>
                            <visible>!String.IsEmpty(Container(9999).ListItemAbsolute(0).Property(Deathday))</visible>
                        </item>
                        <item>
                            <label>$LOCALIZE[32085]:</label>
                            <label2>$INFO[Container(9999).ListItemAbsolute(0).Property(aliases)]</label2>
                            <onclick>noop</onclick>
                            <visible>!String.IsEmpty(Container(9999).ListItemAbsolute(0).Property(aliases))</visible>
                        </item>
                    </content>
                </control>
                
                <control type="button" id="3111">
                    <onfocus>SetFocus(3100)</onfocus>
                    <include>HiddenButton</include>
                </control>
                <control type="list" id="3100">
                    <orientation>horizontal</orientation>
                    <onup>90003</onup>
                    <ondown>9101</ondown>
                    <onback condition="!String.IsEmpty(Window(Home).Property(TMDbHelper.Path.Current))">RunScript(plugin.video.themoviedb.helper,del_path,call_id=1129)</onback>
                    <onback>3111</onback>
                    <itemlayout />
                    <focusedlayout />
                    <include>HiddenButton</include>
                    <content>$INFO[Window(Home).Property(TMDbHelper.Path.Current)]</content>
                </control>
                
            </control>
                
            <control type="group" id="9100">
                    
                <posx>700</posx>
                <posy>640</posy>
                <width>1180</width>
                <height>410</height>
                
                    <control type="list" id="9101">
                        <width>1180</width>
                        <height>410</height>
                        <onleft>9101</onleft>
                        <onright>9101</onright>
                        <scrolltime>200</scrolltime>
                        <orientation>horizontal</orientation>
                        <include>InfoList_OnBack</include>
                        <include content="InfoList_OnClick">
                            <param name="prevent_del" value="noop" />
                        </include>
                        <include content="SetLayout">
                            <param name="viewid">9101</param>
                        </include>
                        <content limit="25" target="videos">$VAR[InfoCastList01]</content>                        
                    </control>
            </control>
                
        </control>
    </controls>
</window>


My apologies for the long post.  Thank you for your help.

Regards,

Bart
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-08-22, 00:42
Logout Mark Read Team Forum Stats Members Help
plugin.video.themoviedb.helper - Access to TheMovieDb API for Skinners2