Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

… nodes (fixes #14097)
  • Loading branch information...
commit 9f54bdb538fcfae998466f7bebe0344315b3f1fd 1 parent 6059260
Sascha Montellese Montellese authored
3  xbmc/video/windows/GUIWindowVideoNav.cpp
View
@@ -1649,7 +1649,8 @@ bool CGUIWindowVideoNav::ApplyWatchedFilter(CFileItemList &items)
filterWatched = true;
if (!items.IsVideoDb())
filterWatched = true;
- if (items.IsSmartPlayList() && items.GetContent() == "tvshows")
+ if (items.GetContent() == "tvshows" &&
+ (items.IsSmartPlayList() || (items.HasProperty("library.filter") && items.GetProperty("library.filter").asBoolean())))
node = NODE_TYPE_TITLE_TVSHOWS; // so that the check below works
int watchMode = g_settings.GetWatchMode(m_vecItems->GetContent());
3  xbmc/windows/GUIMediaWindow.cpp
View
@@ -1686,7 +1686,8 @@ void CGUIMediaWindow::OnFilterItems(const CStdString &filter)
m_viewControl.Clear();
- CFileItemList items(m_vecItems->GetPath()); // use the original path - it'll likely be relied on for other things later.
+ CFileItemList items;
+ items.Copy(*m_vecItems, false); // use the original path - it'll likely be relied on for other things later.
items.Append(*m_unfilteredItems);
bool filtered = GetFilteredItems(filter, items);
Please sign in to comment.
Something went wrong with that request. Please try again.