1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

added refresh metadata button to the edit page

This commit is contained in:
Luke Pulverenti 2013-05-22 15:49:12 -04:00
parent 14bbc7b9c5
commit 057f6bfabf
7 changed files with 163 additions and 89 deletions

View file

@ -377,6 +377,28 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout) {
});
};
/**
* Refreshes metadata for an item
*/
self.refreshItem = function (itemId, force, recursive) {
if (!itemId) {
throw new Error("null itemId");
}
var url = self.getUrl("Items/" + itemId + "/Refresh", {
force: force || false,
recursive: recursive || false
});
return self.ajax({
type: "POST",
url: url
});
};
/**
* Installs or updates a new plugin
*/