mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update auto-organize
This commit is contained in:
parent
8aa5acfee4
commit
d665b12b82
4 changed files with 48 additions and 24 deletions
|
@ -3414,5 +3414,35 @@
|
|||
|
||||
return self.getJSON(url);
|
||||
};
|
||||
|
||||
self.getSmartMatchInfos = function (options) {
|
||||
|
||||
options = options || {};
|
||||
|
||||
var url = self.getUrl("Library/FileOrganizations/SmartMatches", options);
|
||||
|
||||
return self.ajax({
|
||||
type: "GET",
|
||||
url: url,
|
||||
dataType: "json"
|
||||
});
|
||||
};
|
||||
|
||||
self.deleteSmartMatchEntry = function (name, options) {
|
||||
|
||||
var url = self.getUrl("Library/FileOrganizations/SmartMatches", options || {});
|
||||
|
||||
var postData = {
|
||||
Name: name
|
||||
};
|
||||
|
||||
return self.ajax({
|
||||
|
||||
type: "POST",
|
||||
url: url,
|
||||
data: JSON.stringify(postData),
|
||||
contentType: "application/json"
|
||||
});
|
||||
};
|
||||
};
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue