diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-04-24 12:03:10 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-04-24 12:03:10 -0400 |
| commit | d78c378452df2ce75c7208fe7ba919ab54455448 (patch) | |
| tree | 691d47b4552344030dc00ec44c9af0c4b8cc9026 /MediaBrowser.WebDashboard/ApiClient.js | |
| parent | 0d15e1d631a220f2d1288ad9632e3cfaa8ede479 (diff) | |
added theme song support
Diffstat (limited to 'MediaBrowser.WebDashboard/ApiClient.js')
| -rw-r--r-- | MediaBrowser.WebDashboard/ApiClient.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/MediaBrowser.WebDashboard/ApiClient.js b/MediaBrowser.WebDashboard/ApiClient.js index 759fb0dc4..42aa7d52c 100644 --- a/MediaBrowser.WebDashboard/ApiClient.js +++ b/MediaBrowser.WebDashboard/ApiClient.js @@ -1713,6 +1713,27 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout) { }; /** + * Gets theme songs for an item + */ + self.getThemeSongs = function (userId, itemId) { + + if (!userId) { + throw new Error("null userId"); + } + if (!itemId) { + throw new Error("null itemId"); + } + + var url = self.getUrl("Users/" + userId + "/Items/" + itemId + "/ThemeSongs"); + + return self.ajax({ + type: "GET", + url: url, + dataType: "json" + }); + }; + + /** * Gets special features for an item */ self.getSpecialFeatures = function (userId, itemId) { |
