Skip to content

Commit

Permalink
[backport-resurrect] added: also hide thumbs for unwatched episodes i…
Browse files Browse the repository at this point in the history
…f option to show plot is off
  • Loading branch information
mkortstiege authored and uNiversaI committed Jul 10, 2015
1 parent ca773c6 commit b584ade
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions xbmc/video/VideoThumbLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,10 @@ bool CVideoThumbLoader::FillLibraryArt(CFileItem &item)
// For episodes and seasons, we want to set fanart for that of the show
if (!item.HasArt("fanart") && tag.m_iIdShow >= 0)
{
if (tag.m_type == MediaTypeEpisode &&
!CSettings::Get().GetBool("videolibrary.showunwatchedplots"))
item.SetArt("thumb","DefaultEpisodeHidden.png");

ArtCache::const_iterator i = m_showArt.find(tag.m_iIdShow);
if (i == m_showArt.end())
{
Expand Down

0 comments on commit b584ade

Please sign in to comment.