Library Data Provider / DialogVideoInfo Problem
#1
im searching for a solution…

i want to show DialogVideoInfo from a list with static list content from a customwindow with Library Data Provider:

xml:

<control type="wraplist" id="9502">
<visible allowhiddenfocus="true">true</visible>
<bottom>-200</bottom>
<left>-10</left>
<width>1990</width>
<height>670</height>
<onleft>9502</onleft>
<onright>9502</onright>
<onback>9000</onback>
<orientation>horizontal</orientation>
<preloaditems>2</preloaditems>
<pagecontrol>60</pagecontrol>
<viewtype label="536">list</viewtype>    
<itemlayout height="455" width="240">    
      <control type="group">
      <control type="image">
       <left>0</left>
       <top>2</top>
       <right>21</right>
       <bottom>119</bottom>
       <texture border="10">common/nofocus-shadow10.png</texture>
      </control>
      <control type="image">
       <left>9</left>
       <top>9</top>
       <right>29</right>
       <height>317</height>                         
       <texture colordiffuse="Box2" background="true">common/box5.png</texture>  
       <visible>!Skin.HasSetting(thumbnails.white)</visible>                       
      </control>
      <control type="image">
       <left>10</left>
       <top>10</top>
       <right>30</right>
       <bottom>130</bottom>       
       <aspectratio align="center">scale</aspectratio>
       <texture background="true">$INFO[ListItem.Icon]</texture>
      </control>     
     </control>
</itemlayout>
<focusedlayout height="455" width="240">
      <control type="group"> 
       <animation center="100,280" easing="inout" effect="zoom" end="150" start="100" time="300" tween="sine">Focus</animation>
       <animation center="100,280" easing="inout" effect="zoom" end="100" start="150" time="300" tween="sine">UnFocus</animation>      
       <control type="image">
       <left>0</left>
       <top>2</top>
       <right>21</right>
       <bottom>119</bottom>
       <texture border="10">common/nofocus-shadow10.png</texture>
      </control>
      <control type="image">
       <left>9</left>
       <top>9</top>
       <right>29</right>
       <height>317</height>                         
       <texture colordiffuse="Box2" background="true">common/box5.png</texture>  
       <visible>!Skin.HasSetting(thumbnails.white)</visible>                       
      </control>       
      <control type="image">
       <left>10</left>
       <top>10</top>
       <right>30</right>
       <bottom>130</bottom>      
       <aspectratio align="center">scale</aspectratio>
       <texture background="true">$INFO[ListItem.Icon]</texture>
      </control>
     </control>
     <control type="label">
      <left>-15</left>
      <top>362</top>
      <width>1315</width>
      <height>42</height>
      <font>LabelInfo</font>
      <scroll>true</scroll>
      <scrollspeed>30</scrollspeed>
      <visible>Control.HasFocus(43260)</visible>
      <textcolor>Dark1</textcolor>
      <label>$INFO[ListItem.Label]</label>
      <animation reversible="false" effect="fade" start="0" end="100" time="400" delay="400">Focus</animation>
      <animation reversible="false" effect="fade" start="100" end="0" time="0" delay="0">UnFocus</animation>    
     </control>
 </focusedlayout>
<content>
     <item id="1">
      <label>$INFO[Window(Home).Property(SkinHelper.ListItem.0.DBID)]</label>
      <thumb>$INFO[Window(Home).Property(SkinHelper.ListItem.0.Art.Poster)]</thumb>
      <visible>!String.IsEmpty(Window(Home).Property(SkinHelper.ListItem.0.Art.Poster))</visible>
      <property name="listfocus">Focus0</property>
     </item>
     <item id="2">
      <label>$INFO[Window(Home).Property(SkinHelper.ListItem.1.DBID)]</label>
      <thumb>$INFO[Window(Home).Property(SkinHelper.ListItem.1.Art.Poster)]</thumb>
      <visible>!String.IsEmpty(Window(Home).Property(SkinHelper.ListItem.1.Art.Poster))</visible>
      <property name="listfocus">Focus1</property>
     </item>
     <item id="3">
      <label>$INFO[Window(Home).Property(SkinHelper.ListItem.2.DBID)]</label>
      <thumb>$INFO[Window(Home).Property(SkinHelper.ListItem.2.Art.Poster)]</thumb>
      <visible>!String.IsEmpty(Window(Home).Property(SkinHelper.ListItem.2.Art.Poster))</visible>
      <property name="listfocus">Focus2</property>
     </item>
     <item id="4">
      <label>$INFO[Window(Home).Property(SkinHelper.ListItem.3.DBID)]</label>
      <thumb>$INFO[Window(Home).Property(SkinHelper.ListItem.3.Art.Poster)]</thumb>
      <visible>!String.IsEmpty(Window(Home).Property(SkinHelper.ListItem.3.Art.Poster))</visible>
      <property name="listfocus">Focus3</property>
     </item>
</content>


 </control>
    <control type="list" id="43260">
     <left>-200</left>
     <top>200</top>
     <width>1800</width>
     <height>400</height>
     <onright>SetFocus(9502)</onright>
     <onright>Right</onright>
     <onright>SetFocus(43260)</onright>
     <onleft>SetFocus(9502)</onleft>
     <onleft>Left</onleft>
     <onleft>SetFocus(43260)</onleft>
     <itemlayout/>
     <focusedlayout/>
     <content>plugin://service.library.data.provider?type=movie&amp;dbid=$VAR[Datab]</content>
</Control>

includes
xml:

<variable name="Datab">
  <value>$INFO[Control.GetLabel(9502)]</value>
 </variable>

The DialogVideoInfo window is shown correctly on every movie in the list, but i get an error:

html:
13:17:22.503 T:7512   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ValueError'>
                                            Error Contents: invalid literal for int() with base 10: ''
                                            Traceback (most recent call last):
                                              File "C:\Users\standard\AppData\Roaming\Kodi\addons\service.library.data.provider\plugin.py", line 160, in <module>
                                                Main()
                                              File "C:\Users\standard\AppData\Roaming\Kodi\addons\service.library.data.provider\plugin.py", line 114, in __init__
                                                data.parse_dbid('movie', self.dbid, full_liz)
                                              File "C:\Users\standard\AppData\Roaming\Kodi\addons\service.library.data.provider\resources\lib\data.py", line 465, in parse_dbid
                                                json_query = _get_query(dbtype, dbid)
                                              File "C:\Users\standard\AppData\Roaming\Kodi\addons\service.library.data.provider\resources\lib\data.py", line 578, in _get_query
                                                "id": 1 }''' % (method, param, int(dbid)))
                                            ValueError: invalid literal for int() with base 10: ''
                                            -->End of Python script error report<--
13:17:22.569 T:6256   ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://service.library.data.provider/?type=movie&dbid=

xml:
<content>plugin://service.library.data.provider?type=movie&amp;dbid=3</Content>
this f.e. works correctly to, without an error of Library Data Provider, so i don't know whats the problem.

anybody can help please? Confused
Maybe there's another method, how to show DialogVideoInfo?
Reply
#2
i doubt Control.GetLabel() will work for containers...
perhaps you'll have more luck using Container(9502).ListItem.Label

either way, you need to verify that $VAR[Datab] returns anything, you can use it in a label control to check if that's the case.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply

Logout Mark Read Team Forum Stats Members Help
Library Data Provider / DialogVideoInfo Problem0