ListItem.Duration wont show up in Homescreen Widgets
#1
Hello

I try to Show the Duration of a random item.

My Problem is; i couldn't get it to Work. Hope someone Here can Help.

Here's the Code for The Thumbnail:
PHP Code:
<control type="label">
                        <
description>Title label</description>
                        <
posx>585</posx>
                        <
posy>158</posy>
                        <
height>30</height>
                        <
width>475</width>
                        <
label>[COLOR blue]Runtime:[/COLOR$INFO[ListItem.Property(Runtime)] </label>
                        <
align>left</align>
                        <
aligny>center</aligny>
                        <
font>font12</font>
                        <
textcolor>white</textcolor>
                        <
shadowcolor>black</shadowcolor>
                        <
scroll>true</scroll>
                        <
visible>Control.HasFocus(9101) + Container(9000).Hasfocus(8)</visible>
                    </
control>
...... 

and here my List items:
PHP Code:
<!-- Start Musicvideo Items -->
                            <
item>
                                <
label>$INFO[Window.Property(RandomMusicVideo.10.Title)]</label>
                                <
label2>$INFO[Window.Property(RandomMusicVideo.10.Plot)]</label2>
                                <
onclick>PlayMedia($ESCINFO[Window.Property(RandomMusicVideo.10.Path)])</onclick>
                                <
icon>$INFO[Window.Property(RandomMusicVideo.10.Thumb)]</icon>
                                <
thumb>-</thumb>
                                <
property name="Fanart">$INFO[Window.Property(RandomMusicVideo.10.Fanart)]</property>
                                <
property name="Year">$INFO[Window.Property(RandomMusicVideo.10.Year)]</property>
                                <
property name="Runtime">$INFO[Window.Property(RandomMusicVideo.10.RunningTime)]</property>
                                <
property name="Rating">$INFO[Window.Property(RandomMusicVideo.10.Rating)]</property>
                                <
visible>!IsEmpty(Window.Property(RandomMusicVideo.10.Title)) + Container(9000).Hasfocus(8)</visible>
                            </
item>
                            <
item>
                                <
label>$INFO[Window.Property(RandomMusicVideo.9.Title)]</label>
                                <
label2>$INFO[Window.Property(RandomMusicVideo.9.Plot)]</label2>
                                <
onclick>PlayMedia($ESCINFO[Window.Property(RandomMusicVideo.9.Path)])</onclick>
                                <
icon>$INFO[Window.Property(RandomMusicVideo.9.Thumb)]</icon>
                                <
thumb>-</thumb>
                                <
property name="Fanart">$INFO[Window.Property(RandomMusicVideo.9.Fanart)]</property>
                                <
property name="Year">$INFO[Window.Property(RandomMusicVideo.9.Year)]</property>
                                <
property name="Runtime">$INFO[Window.Property(RandomMusicVideo.9.RunningTime)]</property>
                                <
property name="Rating">$INFO[Window.Property(RandomMusicVideo.9.Rating)]</property>
                                <
visible>!IsEmpty(Window.Property(RandomMusicVideo.9.Title)) + Container(9000).Hasfocus(8)</visible>
                            </
item>
                            <
item>
                                <
label>$INFO[Window.Property(RandomMusicVideo.8.Title)]</label>
                                <
label2>$INFO[Window.Property(RandomMusicVideo.8.Plot)]</label2>
                                <
onclick>PlayMedia($ESCINFO[Window.Property(RandomMusicVideo.8.Path)])</onclick>
                                <
icon>$INFO[Window.Property(RandomMusicVideo.8.Thumb)]</icon>
                                <
thumb>-</thumb>
..... 

i also try it with: "ListItem.Duration" with no Luck.

Dont knew what's wrong. Hope someone can Tell me where i do the Mistake.

Thanks in Advanced.
Reply
#2
start by fixing this :-)
<property name="Runtime">$INFO[Window.Property(RandomMusicVideo.10.RunTime)]</property>
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
#3
Thanks for your Reply.

Sadly no Luck with "RunTime".

Title Label, Year and Plot work fine, but as I found out I’m also not able to play the Clips by Clicking on them. (Just to mention)
Reply
#4
RandomMusicVideo.%d.Runtime is correct and works fine here.
Image
Reply

Logout Mark Read Team Forum Stats Members Help
ListItem.Duration wont show up in Homescreen Widgets0