Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed: hide watched + watched overlay not working with sets

(cherry picked from commit bfc7d9f)
  • Loading branch information...
commit 8fbf404bb46ae3feaf94e09ecd4fac3bf53dabdb 1 parent 53b619f
vdrfan authored theuni committed
1  xbmc/video/VideoDatabase.cpp
View
@@ -4028,6 +4028,7 @@ bool CVideoDatabase::GetSetsNav(const CStdString& strBaseDir, CFileItemList& ite
// fv(3) is the number of videos watched, fv(2) is the total number. We set the playcount
// only if the number of videos watched is equal to the total number (i.e. every video watched)
pItem->GetVideoInfoTag()->m_playCount = (m_pDS->fv(3).get_asInt() == m_pDS->fv(2).get_asInt()) ? 1 : 0;
+ pItem->SetOverlayImage(CGUIListItem::ICON_OVERLAY_UNWATCHED, pItem->GetVideoInfoTag()->m_playCount > 0);
pItem->GetVideoInfoTag()->m_strTitle = pItem->GetLabel();
}
bool thumb=false,fanart=false;
1  xbmc/video/windows/GUIWindowVideoNav.cpp
View
@@ -836,6 +836,7 @@ void CGUIWindowVideoNav::OnPrepareFileItems(CFileItemList &items)
bool filterWatched=false;
if (node == NODE_TYPE_EPISODES
|| node == NODE_TYPE_SEASONS
+ || node == NODE_TYPE_SETS
|| node == NODE_TYPE_TITLE_MOVIES
|| node == NODE_TYPE_TITLE_TVSHOWS
|| node == NODE_TYPE_TITLE_MUSICVIDEOS
Please sign in to comment.
Something went wrong with that request. Please try again.