mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
#680 - added auto organize page
This commit is contained in:
parent
fda9b3d93d
commit
9ab4adcd33
10 changed files with 481 additions and 159 deletions
37
ApiClient.js
37
ApiClient.js
|
@ -441,7 +441,7 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout, wi
|
|||
self.getLiveTvPrograms = function (options) {
|
||||
|
||||
options = options || {};
|
||||
|
||||
|
||||
if (options.channelIds && options.channelIds.length > 1800) {
|
||||
|
||||
return self.ajax({
|
||||
|
@ -453,7 +453,7 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout, wi
|
|||
});
|
||||
|
||||
} else {
|
||||
|
||||
|
||||
return self.ajax({
|
||||
type: "GET",
|
||||
url: self.getUrl("LiveTv/Programs", options),
|
||||
|
@ -666,6 +666,37 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout, wi
|
|||
});
|
||||
};
|
||||
|
||||
self.getFileOrganizationResults = function (options) {
|
||||
|
||||
var url = self.getUrl("Library/FileOrganization", options || {});
|
||||
|
||||
return self.ajax({
|
||||
type: "GET",
|
||||
url: url,
|
||||
dataType: "json"
|
||||
});
|
||||
};
|
||||
|
||||
self.deleteOriginalFileFromOrganizationResult = function (id) {
|
||||
|
||||
var url = self.getUrl("Library/FileOrganizations/" + id + "/File");
|
||||
|
||||
return self.ajax({
|
||||
type: "DELETE",
|
||||
url: url
|
||||
});
|
||||
};
|
||||
|
||||
self.performOrganization = function (id) {
|
||||
|
||||
var url = self.getUrl("Library/FileOrganizations/" + id + "/Organize");
|
||||
|
||||
return self.ajax({
|
||||
type: "POST",
|
||||
url: url
|
||||
});
|
||||
};
|
||||
|
||||
self.getLiveTvSeriesTimer = function (id) {
|
||||
|
||||
if (!id) {
|
||||
|
@ -4003,7 +4034,7 @@ MediaBrowser.ApiClient.create = function (clientName, applicationVersion) {
|
|||
var loc = window.location;
|
||||
|
||||
var address = loc.protocol + '//' + loc.hostname;
|
||||
|
||||
|
||||
if (loc.port) {
|
||||
address += ':' + loc.port;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue