aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.WebDashboard/ApiClient.js
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-11-29 11:58:24 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-11-29 11:58:24 -0500
commit235b838fbe262f3f41cd64c8506d067c9ef9253e (patch)
tree4c210d714cf6a0035c1bda623847d7d7b883a3ed /MediaBrowser.WebDashboard/ApiClient.js
parent4892fb4e95f982527769620595e924c364204310 (diff)
support deleting and canceling live tv recordings and timers
Diffstat (limited to 'MediaBrowser.WebDashboard/ApiClient.js')
-rw-r--r--MediaBrowser.WebDashboard/ApiClient.js20
1 files changed, 18 insertions, 2 deletions
diff --git a/MediaBrowser.WebDashboard/ApiClient.js b/MediaBrowser.WebDashboard/ApiClient.js
index 36476511e..de96c4de9 100644
--- a/MediaBrowser.WebDashboard/ApiClient.js
+++ b/MediaBrowser.WebDashboard/ApiClient.js
@@ -506,6 +506,20 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout, wi
});
};
+ self.createLiveTvTimer = function (options) {
+
+ if (!options) {
+ throw new Error("null options");
+ }
+
+ var url = self.getUrl("LiveTv/Timers", options);
+
+ return self.ajax({
+ type: "POST",
+ url: url
+ });
+ };
+
/**
* Gets the current server status
*/
@@ -1019,9 +1033,11 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout, wi
/**
* Gets the server's scheduled tasks
*/
- self.getScheduledTasks = function () {
+ self.getScheduledTasks = function (options) {
- var url = self.getUrl("ScheduledTasks");
+ options = options || {};
+
+ var url = self.getUrl("ScheduledTasks", options);
return self.ajax({
type: "GET",