aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.WebDashboard/ApiClient.js
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-03-26 00:33:47 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-03-26 00:33:47 -0400
commit62521eabc20cb73d7236b57a506181af277f3a9e (patch)
treeda46ad60425b75abfece754c6739057b32807887 /MediaBrowser.WebDashboard/ApiClient.js
parenta4756fffe1910519ae983184d1d20a063aff4883 (diff)
update to latest js api client
Diffstat (limited to 'MediaBrowser.WebDashboard/ApiClient.js')
-rw-r--r--MediaBrowser.WebDashboard/ApiClient.js42
1 files changed, 42 insertions, 0 deletions
diff --git a/MediaBrowser.WebDashboard/ApiClient.js b/MediaBrowser.WebDashboard/ApiClient.js
index 5381a7abd..0f014f870 100644
--- a/MediaBrowser.WebDashboard/ApiClient.js
+++ b/MediaBrowser.WebDashboard/ApiClient.js
@@ -1517,6 +1517,48 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout) {
};
/**
+ * Gets local trailers for an item
+ */
+ self.getLocalTrailers = 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 + "/LocalTrailers");
+
+ return self.ajax({
+ type: "GET",
+ url: url,
+ dataType: "json"
+ });
+ };
+
+ /**
+ * Gets special features for an item
+ */
+ self.getSpecialFeatures = 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 + "/SpecialFeatures");
+
+ return self.ajax({
+ type: "GET",
+ url: url,
+ dataType: "json"
+ });
+ };
+
+ /**
* Marks an item as played or unplayed
* This should not be used to update playstate following playback.
* There are separate playstate check-in methods for that. This should be used for a