Solved Problem with LatestAlbum.Thumb
#1
Hi there,

After referring to this page: http://wiki.xbmc.org/?title=InfoLabels
I decided to use LatestAlbum.[1-10].Thumb to retrieve the album cover to be displayed under recently added albums.

I went with a list control. This is my code:
PHP Code:
<include name="HomeMenu_MusicRecentlyAdded">
<
control type="list" id="940">
    <
posx>0</posx>
    <
posy>0</posy>
    <
width>500</width>
    <
height>400</height>
    <
allowoverlay>false</allowoverlay>
    <
orientation>vertical</orientation>
    <
visible>Container(300).HasFocus(2) + Library.HasContent(Music)</visible>

    <
itemlayout width="900" height="350">
        <
control type="label">
            <
posx>0</posx>
            <
posy>20</posy>
            <
font>Small</font>
            <
height>50</height>
            <
textcolor>white</textcolor>
            <
info>ListItem.Label</info>
        </
control>

        <
control type="image">
            <
posx>0</posx>
            <
posy>0</posy>
            <
width>350</width>
            <
height>350</height>
            <
texture>$INFO[ListItem.Thumb]</texture>
        </
control>
    </
itemlayout>

    <
focusedlayout width="900" height="350">
        <
control type="label">
            <
posx>0</posx>
            <
posy>20</posy>
            <
height>50</height>
            <
font>Small</font>
            <
textcolor>white</textcolor>
            <
info>ListItem.Label</info>
        </
control>

        <
control type="image">
            <
posx>200</posx>
            <
posy>20</posy>
            <
width>350</width>
            <
height>350</height>
            <
texture>$INFO[ListItem.Thumb]</texture>
        </
control>
    </
focusedlayout>

    <
content>
        <
item id="941">
            <
info>Window(Home).Property(RecentAlbum.1.Title)</info>
            <
texture>$INFO[Window.Property(RandomMovie.1.fanart)]</texture>
            <
onclick>-</onclick>
         </
item>

         <
item id="942">
            <
info>Window(Home).Property(RecentAlbum.2.Title)</info>
            <
texture>$INFO[Window(Home).Property(RandomMovie.1.Art(fanart))]</texture>
            <
onclick>-</onclick>
         </
item>

        
        
    </
content>
</
control>
</include> 

I can not, for the life of me, get the album covers to show up.
I have the skin services add-on installed, so tried with RecentAlbums and RandomAlbum, no dice.

What gives?
Reply
#2
You haven't defined the thumb image in your content.

PHP Code:
<icon>Window(Home).Property(RecentAlbum.1.Thumb)</icon

EDIT: And
PHP Code:
<texture>$INFO[Window(Home).Property(RandomMovie.1.Art(fanart))]</texture
won't work.

http://wiki.xbmc.org/index.php?title=Sta...st_Content
Reply
#3
Static list content doesn't use <texture>

http://wiki.xbmc.org/?title=Static_List_Content
Image [RELEASE] Metroid
Image [RELEASE] IrcChat
Reply
#4
You are very correct, thank you sirs!

This ended up working:
PHP Code:
<control type="image">
            <
posx>0</posx>
            <
posy>30</posy>
            <
width>250</width>
            <
height>250</height>
            <
texture>$INFO[ListItem.Thumb]</texture>
        </
control

and in <content>:
PHP Code:
<item id="941">
            <
label>$INFO[Window.Property(RecentAlbum.1.Title)]</label>
            <
thumb>$INFO[Window.Property(LatestAlbum.1.Thumb)]</thumb>
            <
onclick>-</onclick>
         </
item
Reply

Logout Mark Read Team Forum Stats Members Help
Problem with LatestAlbum.Thumb0