diff --git a/ApiClient.js b/ApiClient.js index 637e2e549a..6228c9106b 100644 --- a/ApiClient.js +++ b/ApiClient.js @@ -896,16 +896,22 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout) { * Adds a virtual folder to either the default view or a user view * @param {String} name */ - self.addVirtualFolder = function (name, userId) { + self.addVirtualFolder = function (name, type, userId) { if (!name) { throw new Error("null name"); } + var options = {}; + + if (type) { + options.collectionType = type; + } + var url = userId ? "Users/" + userId + "/VirtualFolders" : "Library/VirtualFolders"; url += "/" + name; - url = self.getUrl(url); + url = self.getUrl(url, options); return self.ajax({ type: "POST", diff --git a/dashboard-ui/library.html b/dashboard-ui/library.html index f34ff099a8..dd3b470d27 100644 --- a/dashboard-ui/library.html +++ b/dashboard-ui/library.html @@ -43,8 +43,19 @@
- - +

+ + +

+ +

+ + +

+ +

+ Anything not listed, including custom media types supported by plugins (e.g. photos, games) should be classified as general or mixed content. +