Permalink
Browse files

library: allow optional <path> tag in custom filter nodes

  • Loading branch information...
1 parent 32a74fa commit c916868107375bc2bd5b5049896c686a078881cb @Montellese committed Oct 11, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 xbmc/filesystem/LibraryDirectory.cpp
@@ -75,6 +75,12 @@ bool CLibraryDirectory::GetDirectory(const CStdString& strPath, CFileItemList &i
CSmartPlaylistDirectory::GetDirectory(playlist, items))
{
items.SetProperty("library.filter", "true");
+
+ CStdString path;
+ XMLUtils::GetPath(node, "path", path);
+ if (!path.empty())
+ items.SetPath(path);
+
return true;
}
}

0 comments on commit c916868

Please sign in to comment.