Skip to content
This repository
Browse code

video library: fix handling of watched episode count in custom tvshow…

… nodes (fixes #14097)
  • Loading branch information...
commit 9f54bdb538fcfae998466f7bebe0344315b3f1fd 1 parent 6059260
Sascha Montellese authored February 25, 2013
3  xbmc/video/windows/GUIWindowVideoNav.cpp
@@ -1649,7 +1649,8 @@ bool CGUIWindowVideoNav::ApplyWatchedFilter(CFileItemList &items)
1649 1649
     filterWatched = true;
1650 1650
   if (!items.IsVideoDb())
1651 1651
     filterWatched = true;
1652  
-  if (items.IsSmartPlayList() && items.GetContent() == "tvshows")
  1652
+  if (items.GetContent() == "tvshows" &&
  1653
+     (items.IsSmartPlayList() || (items.HasProperty("library.filter") && items.GetProperty("library.filter").asBoolean())))
1653 1654
     node = NODE_TYPE_TITLE_TVSHOWS; // so that the check below works
1654 1655
 
1655 1656
   int watchMode = g_settings.GetWatchMode(m_vecItems->GetContent());
3  xbmc/windows/GUIMediaWindow.cpp
@@ -1686,7 +1686,8 @@ void CGUIMediaWindow::OnFilterItems(const CStdString &filter)
1686 1686
   
1687 1687
   m_viewControl.Clear();
1688 1688
   
1689  
-  CFileItemList items(m_vecItems->GetPath()); // use the original path - it'll likely be relied on for other things later.
  1689
+  CFileItemList items;
  1690
+  items.Copy(*m_vecItems, false); // use the original path - it'll likely be relied on for other things later.
1690 1691
   items.Append(*m_unfilteredItems);
1691 1692
   bool filtered = GetFilteredItems(filter, items);
1692 1693
 

0 notes on commit 9f54bdb

Please sign in to comment.
Something went wrong with that request. Please try again.