Refactored organization dialog as a component
This commit is contained in:
parent
4ed019b32d
commit
7835a9d3e6
7 changed files with 718 additions and 119 deletions
|
@ -1127,6 +1127,39 @@
|
|||
});
|
||||
};
|
||||
|
||||
self.performMovieOrganization = function (id, options) {
|
||||
|
||||
var url = self.getUrl("Library/FileOrganizations/" + id + "/Movie/Organize", options || {});
|
||||
|
||||
return self.ajax({
|
||||
type: "POST",
|
||||
url: url
|
||||
});
|
||||
};
|
||||
|
||||
self.getSmartMatchInfos = function (options) {
|
||||
|
||||
options = options || {};
|
||||
|
||||
var url = self.getUrl("Library/FileOrganizationSmartMatch", options);
|
||||
|
||||
return self.ajax({
|
||||
type: "GET",
|
||||
url: url,
|
||||
dataType: "json"
|
||||
});
|
||||
};
|
||||
|
||||
self.deleteSmartMatchEntry = function (id, options) {
|
||||
|
||||
var url = self.getUrl("Library/FileOrganizationSmartMatch/" + id + "/Delete", options || {});
|
||||
|
||||
return self.ajax({
|
||||
type: "POST",
|
||||
url: url
|
||||
});
|
||||
};
|
||||
|
||||
self.getLiveTvSeriesTimer = function (id) {
|
||||
|
||||
if (!id) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue