Release script.embuary.info - get TMDb data - the little ExtendedInfo brother
(2022-10-23, 19:44)alberto1998 Wrote: Can I ask you why this script with the button (in the skin estuary "Extended info") only works in the video library and not in other addons like TheMovieDb Helper, instead it always works in the context menu?

It also works with "TheMovieDb Helper".
You need to edit 2 files "DialogVideoInfo.xml" and "Includes_Buttons.xml".

DialogVideoInfo.xml:
xml:
                    <include content="InfoDialogButton">
                        <param name="id" value="101" />
                        <param name="icon" value="icons/infodialogs/info.png" />
                        <param name="label" value="$LOCALIZE[31034]" />
                        <param name="onclick_1_condition" value="!String.IsEmpty(ListItem.DBID) + String.IsEqual(ListItem.DBType,movie)" />
                        <param name="onclick_1" value="RunScript(script.embuary.info,call=movie,dbid=$INFO[ListItem.DBID])" />
                        <param name="onclick_2_condition" value="!String.IsEmpty(ListItem.DBID) + String.IsEqual(ListItem.DBType,tvshow)" />
                        <param name="onclick_2" value="RunScript(script.embuary.info,call=tv,dbid=$INFO[ListItem.DBID])" />
                        <param name="onclick_3_condition" value="!String.IsEmpty(ListItem.DBID) + String.IsEqual(ListItem.DBType,episode)" />
                        <param name="onclick_3" value="RunScript(script.embuary.info,call=tv,query='$ESCINFO[ListItem.TVShowTitle]',year=$INFO[ListItem.Year])" />
                        <param name="onclick_4_condition" value="String.IsEmpty(ListItem.TvShowTitle)" />
                        <param name="onclick_4" value="RunScript(script.embuary.info,call=movie,query='$ESCINFO[ListItem.Label]',year=$INFO[ListItem.Year])" />
                        <param name="onclick_5_condition" value="!String.IsEmpty(ListItem.TvShowTitle)" />
                        <param name="onclick_5" value="RunScript(script.embuary.info,call=tv,query='$ESCINFO[ListItem.TVShowTitle]',year=$INFO[ListItem.Year])" />
                        <param name="visible" value="System.AddonIsEnabled(script.embuary.info) + [!String.IsEmpty(ListItem.DBID) + [String.IsEqual(ListItem.DbType,movie) | String.IsEqual(ListItem.DbType,tvshow) | String.IsEqual(ListItem.DbType,episode)]] | [Container.Content(movies) | Container.Content(tvshows) | Container.Content(seasons) | Container.Content(episodes)]" />
                    </include>

Includes_Buttons.xml:
xml:
    <include name="InfoDialogButton">
        <param name="width">264</param>
        <param name="onclick_1_condition">true</param>
        <param name="onclick_2_condition">true</param>
        <param name="onclick_3_condition">true</param>
        <param name="onclick_4_condition">true</param>
        <param name="onclick_5_condition">true</param>
        <definition>
            <control type="radiobutton" id="$PARAM[id]">
                <width>$PARAM[width]</width>
                <height>142</height>
                <align>center</align>
                <aligny>top</aligny>
                <texturefocus border="21" colordiffuse="button_focus">buttons/button-fo.png</texturefocus>
                <texturenofocus border="21">buttons/button-nofo.png</texturenofocus>
                <textoffsetx>22</textoffsetx>
                <textoffsety>78</textoffsety>
                <radioposx>108</radioposx>
                <radioposy>16</radioposy>
                <radiowidth>48</radiowidth>
                <font>font12</font>
                <textureradioonfocus colordiffuse="D0FFFFFF">$PARAM[icon]</textureradioonfocus>
                <textureradioonnofocus colordiffuse="D0FFFFFF">$PARAM[icon]</textureradioonnofocus>
                <textureradioofffocus colordiffuse="D0FFFFFF">$PARAM[icon]</textureradioofffocus>
                <textureradiooffnofocus colordiffuse="D0FFFFFF">$PARAM[icon]</textureradiooffnofocus>
                <textureradiooffdisabled colordiffuse="disabled">$PARAM[icon]</textureradiooffdisabled>
                <textureradioondisabled colordiffuse="disabled">$PARAM[icon]</textureradioondisabled>
                <label>$PARAM[label]</label>
                <onclick condition="$PARAM[onclick_1_condition]">$PARAM[onclick_1]</onclick>
                <onclick condition="$PARAM[onclick_2_condition]">$PARAM[onclick_2]</onclick>
                <onclick condition="$PARAM[onclick_3_condition]">$PARAM[onclick_3]</onclick>
                <onclick condition="$PARAM[onclick_4_condition]">$PARAM[onclick_4]</onclick>
                <onclick condition="$PARAM[onclick_5_condition]">$PARAM[onclick_5]</onclick>
                <visible>$PARAM[visible]</visible>
                <animation effect="fade" start="100" end="0" time="300" delay="300">Hidden</animation>
            </control>
        </definition>
    </include>
Reply


Messages In This Thread
RE: script.embuary.info - get TMDb data - the little ExtendedInfo brother - by Fuchs2468 - 2022-10-29, 00:00
Logout Mark Read Team Forum Stats Members Help
script.embuary.info - get TMDb data - the little ExtendedInfo brother2