support refreshing ibn items

This commit is contained in:
Luke Pulverenti 2013-06-27 16:08:38 -04:00
parent 6c3c8490c9
commit 58356619ff
2 changed files with 91 additions and 1 deletions

View File

@ -443,6 +443,96 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout) {
});
};
self.refreshArtist = function (name, force) {
if (!name) {
throw new Error("null name");
}
var url = self.getUrl("Artists/" + name + "/Refresh", {
forced: force || false
});
return self.ajax({
type: "POST",
url: url
});
};
self.refreshGenre = function (name, force) {
if (!name) {
throw new Error("null name");
}
var url = self.getUrl("Genres/" + name + "/Refresh", {
forced: force || false
});
return self.ajax({
type: "POST",
url: url
});
};
self.refreshMusicGenre = function (name, force) {
if (!name) {
throw new Error("null name");
}
var url = self.getUrl("MusicGenres/" + name + "/Refresh", {
forced: force || false
});
return self.ajax({
type: "POST",
url: url
});
};
self.refreshPerson = function (name, force) {
if (!name) {
throw new Error("null name");
}
var url = self.getUrl("Persons/" + name + "/Refresh", {
forced: force || false
});
return self.ajax({
type: "POST",
url: url
});
};
self.refreshStudio = function (name, force) {
if (!name) {
throw new Error("null name");
}
var url = self.getUrl("Studios/" + name + "/Refresh", {
forced: force || false
});
return self.ajax({
type: "POST",
url: url
});
};
/**
* Installs or updates a new plugin
*/

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="MediaBrowser.ApiClient.Javascript" version="3.0.126" targetFramework="net45" />
<package id="MediaBrowser.ApiClient.Javascript" version="3.0.129" targetFramework="net45" />
<package id="ServiceStack.Common" version="3.9.54" targetFramework="net45" />
<package id="ServiceStack.Text" version="3.9.54" targetFramework="net45" />
</packages>