mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
support deleting and canceling live tv recordings and timers
This commit is contained in:
parent
8dd607af86
commit
ac0cc84f9d
14 changed files with 181 additions and 75 deletions
20
ApiClient.js
20
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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue