2011-12-05, 22:43
The following code segment will enable movieset Fanart , if those pictures are available.
I will not submit a patch, as even simple bugfixes are ignored.
It's a six line change, so its easy to implement:
file:FileItem.cpp
For hash of Movieset Fanart please look at:
http://forum.xbmc.org/showthread.php?p=8...post822991
This code fragment will not cover the gui part to set the movie set fanart by the user.
I will not submit a patch, as even simple bugfixes are ignored.
It's a six line change, so its easy to implement:
file:FileItem.cpp
Code:
CStdString CFileItem::GetCachedFanart() const
{
// get the locally cached thumb
if (IsVideoDb())
{
if (!HasVideoInfoTag())
return "";
if (!GetVideoInfoTag()->m_strArtist.IsEmpty())
return GetCachedThumb(GetVideoInfoTag()->m_strArtist,g_settings.GetMusicFanartFolder());
if (!m_bIsFolder && !GetVideoInfoTag()->m_strShowTitle.IsEmpty())
{
CVideoDatabase database;
database.Open();
int iShowId = database.GetTvShowId(GetVideoInfoTag()->m_strPath);
CStdString showPath;
database.GetFilePathById(iShowId,showPath,VIDEODB_CONTENT_TVSHOWS);
return GetCachedThumb(showPath,g_settings.GetVideoFanartFolder());
}
[color=red] if (m_bIsFolder)
{
if (GetVideoInfoTag()->m_strPath.empty())
{
// For Movieset Fanart
return GetCachedThumb(m_strPath ,g_settings.GetVideoFanartFolder());
}
else
{
return GetCachedThumb(GetVideoInfoTag()->m_strPath ,g_settings.GetVideoFanartFolder());
}
}
else
{
return GetCachedThumb(GetVideoInfoTag()->m_strFileNameAndPath,g_settings.GetVideoFanartFolder());
}
}[/color]
if (HasMusicInfoTag())
return GetCachedThumb(GetMusicInfoTag()->GetArtist(),g_settings.GetMusicFanartFolder());
return GetCachedThumb(m_strPath,g_settings.GetVideoFanartFolder());
}
For hash of Movieset Fanart please look at:
http://forum.xbmc.org/showthread.php?p=8...post822991
This code fragment will not cover the gui part to set the movie set fanart by the user.