Using extra fanart in DilaogVideoInfo.xml
#1
Using something like this in DialogVideoInfo works fine for items with extra fanart
PHP Code:
                <control type="multiimage">
                    <include>
FullscreenDimensions</include>
                    [...]
                    <
imagepath background="true">$INFO[ListItem.Path,,extrafanart]</imagepath>
                    <
visible>Container.Content(Movies)</visible>
                </
control
problem is when I browse to the item without extra fanart I still get last image shown for item with extra fanart image

e.g.
  • The Hobbit has extrafanart and slideshow is displayed correctly

    Image

    but if I then go to the movie without extrafanart I still get image from the Hobbit

    Image
I already asked in the Xperince1080 thread but since Black is not using extra fanart he is not that motivated to look into this so I thought I ask here also. Is there some other skin perhaps that is using extra fanart in the DilaogVideoInfo.xml that I can check ? tnx
Reply
#2
Add fallback="." to the control.
Image
Reply
#3
(2013-01-14, 15:23)`Black Wrote: Add fallback="." to the control.

Tried that already but makes no difference.
Reply
#4
Found a discussion back from September about the similar problem: http://forum.xbmc.org/showthread.php?tid=140405
(2012-09-13, 01:45)adrian ballard Wrote: Brain isn't working and I can't seem to locate an answer by searching.......

If I've got a multiimage command, how do I verify that the imagepath has images and if not would fallback to $INFO[ListItem.Property(Fanart_Image)]?

Probably easy but I'm not seeing the solution.
Has anything being solved since ?
Reply
#5
Ok, so here's an ugly workaround.

PHP Code:
# Reset the path every time on onload (this causes the multiimage control to refresh)
<onload>SetProperty(extrafanart,.)</onload>
# The time of the Alarmclock should be the same as the window open animation delay
# for the extrafanart image control and same as timeperimage of the multiimage dummy
<onload>AlarmClock(extrafanart,SetProperty(extrafanart,$INFO[ListItem.Path,,extrafanart]),00:07,silent)</onload>
<
controls>
    
# Add this multiimage dummy
    
<control type="multiimage" id="9339">
        <
posx>-</posx>
        <
posy>-</posy>
        <
width>-</width>
        <
height>-</height>
        <
timeperimage>7000</timeperimage>
        <
randomize>true</randomize>
        <
imagepath background="true">$INFO[Window.Property(extrafanart)]</imagepath>
    </
control>
    [...]
    
# Use the label of the multiimage dummy as path for the actual image control
    
<control type="image">
        [...]
        <
fadetime>1500</fadetime>
        <
texture background="true">$INFO[Control.GetLabel(9339)]</texture>
        <
animation effect="fade" start="0" end="100" time="600" delay="7000">WindowOpen</animation>
    </
control>
</
controls
Image
Reply
#6
(2013-01-15, 02:41)`Black Wrote: Ok, so here's an ugly workaround.

still not working
I added debug label and problem is that property extrafanart is not cleared so GetLabel(9339) retains old value if item does not have extra fanart
or better said it is cleared but right after that is set again to use old value Confused


edit
----
it's working, I did not sync clocks, my bad and tnx once more Big Grin
Reply

Logout Mark Read Team Forum Stats Members Help
Using extra fanart in DilaogVideoInfo.xml0