}
}
-void CGUIListItem::SetArt(const ArtMap &art)
+void CGUIListItem::SetArt(const ArtMap &art, bool setFallback /* = true */)
{
m_art = art;
// ensure that the fallback "thumb" is available
- if (m_art.find("thumb") == m_art.end())
+ if (setFallback && m_art.find("thumb") == m_art.end())
{
if (HasArt("poster"))
m_art["thumb"] = m_art["poster"];
/*! \brief set artwork for an item
\param art a type:url map for artwork
+ \param setFallback whether to set the "thumb" fallback, defaults to true.
\sa GetArt
*/
- void SetArt(const ArtMap &art);
+ void SetArt(const ArtMap &art, bool setFallback = true);
/*! \brief append artwork to an item
\param art a type:url map for artwork
for (CGUIListItem::ArtMap::const_iterator i = art.begin(); i != art.end(); ++i)
CTextureCache::Get().BackgroundCacheImage(i->second);
- pItem->SetArt(art);
+ pItem->SetArt(art, false); // don't set fallbacks
// parent folder to apply the thumb to and to search for local actor thumbs
CStdString parentDir = GetParentDir(*pItem);