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
notspiff authored and uNiversaI committed Jul 9, 2015
1 parent ca773c6 commit b9a1492
Show file tree
Hide file tree
Showing 2 changed files with 11 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.
11 changes: 11 additions & 0 deletions xbmc/video/VideoThumbLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,17 @@ bool CVideoThumbLoader::LoadItemCached(CFileItem* pItem)
|| pItem->IsParentFolder())
return false;

// check if thumb should be hidden
if (pItem->HasVideoInfoTag() &&
pItem->GetVideoInfoTag()->m_iEpisode >= 0 &&
pItem->GetVideoInfoTag()->m_playCount == 0 &&
!CSettings::Get().GetBool("videolibrary.showunwatchedplots"))

{
pItem->SetArt("thumb","DefaultEpisodeHidden.png");
return true;
}

m_videoDatabase->Open();

if (!pItem->HasVideoInfoTag() || !pItem->GetVideoInfoTag()->HasStreamDetails()) // no stream details
Expand Down

0 comments on commit b9a1492

Please sign in to comment.