Container.Fanart
#1
I posted over in python development, but maybe this is a skin change.

xbmcplugin.setPluginFanart() this use to set a fanart image no matter what listitem was selected. it does not work anymore.

didn't there use to be a container.fanart infoimage. if so any chance of bringing it back?
i also searched the change thread stickie and saw no reference to container.fanart.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#2
It used to be Fanart.Image for the container's fanart.
Reply
#3
Thanks Hitcher, looks like its not supported anymore. Any team member think its worth bringing back? It was nice for plugins.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#4
It still works fine. See FANART_IMAGE in GUIInfoManager.cpp

Most skins just don't bother with it, as often the listitem has unique fanart.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#5
I see where it's in there for fanart_labels, but i can't get the following to work. it does work if i hard code the path to an image in <texture>, so i know i set the correct background image control and i do close and restart xbmc each change since it's in an include file.

PHP Code:
        <control type="image">
            <
posx>0</posx>
            <
posy>0</posy>
            <
width>1280</width>
            <
height>720</height>
            <
aspectratio>scale</aspectratio>
            <
texture background="true">$INFO[fanart.image]</texture>
            <include>
backgroundfade</include>
            <
fadetime>FanartCrossfadeTime</fadetime>
            <include>
Window_OpenClose_Animation</include>
            <
visible>![Player.HasVideo + !Skin.HasSetting(ShowBackgroundVideo)]</visible>
        </
control

PHP Code:
void CPluginDirectory::SetProperty(int handle, const CStdString &strProperty, const CStdString &strValue)
{
  
CSingleLock lock(m_handleLock);
  if (
handle || handle >= (int)globalHandles.size())
  {
    
CLog::Log(LOGERROR"%s called with an invalid handle."__FUNCTION__);
    return;
  }

  
CPluginDirectory *dir globalHandles[handle];
  if (
strProperty == "fanart_image")
    
dir->m_listItems->SetArt("fanart"strValue);
  else
    
dir->m_listItems->SetProperty(strPropertystrValue);


that's how fanart is being set on a container so i don't know why it's not working?
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply

Logout Mark Read Team Forum Stats Members Help
Container.Fanart0