diff --git a/ApiClient.js b/ApiClient.js index 39c154b4b4..31d11c9451 100644 --- a/ApiClient.js +++ b/ApiClient.js @@ -2047,6 +2047,27 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout) { }); }; + self.getAdditionalVideoParts = function (userId, itemId) { + + if (!itemId) { + throw new Error("null itemId"); + } + + var options = {}; + + if (userId) { + options.userId = userId; + } + + var url = self.getUrl("Videos/" + itemId + "/AdditionalParts", options); + + return self.ajax({ + type: "GET", + url: url, + dataType: "json" + }); + }; + /** * Gets theme songs for an item */ diff --git a/dashboard-ui/itemdetails.html b/dashboard-ui/itemdetails.html index 958edf2afb..b043e67b31 100644 --- a/dashboard-ui/itemdetails.html +++ b/dashboard-ui/itemdetails.html @@ -159,6 +159,12 @@