Skip to content

Commit

Permalink
video library: fix handling of watched episode count in custom tvshow…
Browse files Browse the repository at this point in the history
… nodes (fixes #14097)
  • Loading branch information
Montellese committed Feb 25, 2013
1 parent 6059260 commit 9f54bdb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion xbmc/video/windows/GUIWindowVideoNav.cpp
Expand Up @@ -1649,7 +1649,8 @@ bool CGUIWindowVideoNav::ApplyWatchedFilter(CFileItemList &items)
filterWatched = true; filterWatched = true;
if (!items.IsVideoDb()) if (!items.IsVideoDb())
filterWatched = true; 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 node = NODE_TYPE_TITLE_TVSHOWS; // so that the check below works


int watchMode = g_settings.GetWatchMode(m_vecItems->GetContent()); int watchMode = g_settings.GetWatchMode(m_vecItems->GetContent());
Expand Down
3 changes: 2 additions & 1 deletion xbmc/windows/GUIMediaWindow.cpp
Expand Up @@ -1686,7 +1686,8 @@ void CGUIMediaWindow::OnFilterItems(const CStdString &filter)


m_viewControl.Clear(); 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); items.Append(*m_unfilteredItems);
bool filtered = GetFilteredItems(filter, items); bool filtered = GetFilteredItems(filter, items);


Expand Down

0 comments on commit 9f54bdb

Please sign in to comment.