Kodi Community Forum
[FRODO release] Skin Widgets - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+---- Forum: Skin helper addons (https://forum.kodi.tv/forumdisplay.php?fid=300)
+---- Thread: [FRODO release] Skin Widgets (/showthread.php?tid=142389)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49


RE: [FRODO release] Skin Widgets - Jeroen - 2012-11-09

Strange, it's not populating the list for me. I don't have to call the add-on anywhere as it is a service right?


RE: [FRODO release] Skin Widgets - MassIV - 2012-11-09

You sure you set Title as property and not as label?
<item>
<label>$INFO[Window(Home).Property(RecentEpisode.1.Title)]</label>
<property name="Title">$INFO[Window(Home).Property(RecentEpisode.1.Title)]</property>
</item>

<control type="label">
<label>$INFO[Container(8001).ListItem.Label] </label>
<label>$INFO[Container(8001).ListItem.Property(Title)] </label>
</control>


RE: [FRODO release] Skin Widgets - Jeroen - 2012-11-09

What's being used as a label is step 2, my first problem is that the container itself is not being populated with movies or shows so there are no items to set a label for.



RE: [FRODO release] Skin Widgets - MassIV - 2012-11-09

Did you use Window(Home) in the content that you want your list populated with?
Code:
<content>
    <item>
        <label>$INFO[Window(Home).Property(RecentEpisode.1.Title)]</label>
        <property name="EpisodeNumber">$INFO[Window(Home).Property(RecentEpisode.1.EpisodeNo)]</property>
    </item>
    <item>
        <label>$INFO[Window(Home).Property(RecentEpisode.2.Title)]</label>
        <property name="EpisodeNumber">$INFO[Window(Home).Property(RecentEpisode.2.EpisodeNo)]</property>
    </item>
<content>



RE: [FRODO release] Skin Widgets - `Black - 2012-11-09

(2012-11-09, 13:52)Jeroen Wrote: What's being used as a label is step 2, my first problem is that the container itself is not being populated with movies or shows so there are no items to set a label for.

Well, this never worked, I don't know how you did it... maybe you use something else and not watchlist? You have to fill the lists manually by adding items.

So, do this:
PHP Code:
<control type="list">
    [...]
    <
itemlayout>
        <
control type="label">
            [...]
            <
label>$INFO[ListItem.Label]</label>
            <
label2>$INFO[ListItem.Property(Year)]</label2>
        </
control>
    </
itemlayout>
    <
focusedlayout>
        <
control type="label">
            [...]
            <
label>$INFO[ListItem.Label]</label>
            <
label2>$INFO[ListItem.Property(Year)]</label2>
        </
control>
    </
focusedlayout>
    <
content>
        <
item id="1">
            <
label>$INFO[Window(Home).Property(RecentMovie.1.Title)]</label>
            <
property name="Year">$INFO[Window(Home).Property(RecentMovie.1.Year)]</property>
            <
onclick>$INFO[Window(Home).Property(RecentMovie.1.Play)]</onclick>
        </
item>
        [...]
    </
content>
</
control



RE: [FRODO release] Skin Widgets - MassIV - 2012-11-09

How to see if a property is empty?
I wanted to show the title if there was no logo.
But
Code:
<visible>IsEmpty(Container(8001).ListItem.Property(Logo))</visible>
seems to always be true, even if the logo is visible.

Hmm, looks like it's maybe something else. That the logos were there, but some were not showing (yet)?
Yeah, that was it. Coming from a clean library i had to play at least 1 video before logos showed up.

-edit- part moved to AD thread



RE: [FRODO release] Skin Widgets - liquidskin76 - 2012-11-09

@Martijn...

Just switched Welo over to the widget, and after a change or two all worked a treat. Cool

Many thanks for your hard work. Wink


RE: [FRODO release] Skin Widgets - Jeroen - 2012-11-09

It has definitely worked, and with watchlist Smile


edit: nvm, I don't know my own code apparently ;-P



RE: [FRODO release] Skin Widgets - jingai - 2012-11-09

Is there a reason to use Recent* over Latest*? Are the built-in recently added items in XBMC going away?


RE: [FRODO release] Skin Widgets - Hitcher - 2012-11-10

You can hide watched with this.


RE: [FRODO release] Skin Widgets - jingai - 2012-11-10

(2012-11-10, 00:01)Hitcher Wrote: You can hide watched with this.

Ah, I see. Good enough reason to use it then. Going forward, are you using this exclusively in your skins, or are you planning to support both?


RE: [FRODO release] Skin Widgets - Hitcher - 2012-11-10

I'm using this for the 'watchlist' stuff and XBMC for 'recent' stuff because I like to use 'info' on them. Having said that I'm using it exclusively on Alaska HD which isn't even released yet.


RE: [FRODO release] Skin Widgets - jingai - 2012-11-10

Hmm.. I think I might just use it exclusively for now. Being able to use info in the items directly from the list is nifty, but it doesn't work on random/watchlist items, so I think the inconsistency might prompt complaints.


RE: [FRODO release] Skin Widgets - `Black - 2012-11-13

(2012-11-06, 21:33)Martijn Wrote:
PHP Code:
<onclick>$INFO[Window(Home).Property(RecommendedMovie.4.Play)]</onclick

This doesn't work for me at all. Here's the log. Happens on OS X and Windows.



RE: [FRODO release] Skin Widgets - ronie - 2012-11-13

(2012-11-13, 00:46)`Black Wrote:
(2012-11-06, 21:33)Martijn Wrote:
PHP Code:
<onclick>$INFO[Window(Home).Property(RecommendedMovie.4.Play)]</onclick

This doesn't work for me at all. Here's the log. Happens on OS X and Windows.

log says you're using PlayMedia()

Quote:23:38:01 T:140735126258048 DEBUG: ExecuteXBMCAction : Translating PlayMedia($INFO[Container(3022).ListItem.Property(Play)])