1
0
Fork 0
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:
Luke Pulverenti 2016-02-09 12:13:38 -05:00
parent 8aa5acfee4
commit d665b12b82
4 changed files with 48 additions and 24 deletions

View file

@ -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"
});
};
};
});