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:
parent
14bbc7b9c5
commit
057f6bfabf
7 changed files with 163 additions and 89 deletions
22
ApiClient.js
22
ApiClient.js
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue