#551 - Add manual image selection for movies
This commit is contained in:
parent
fd2f6fa1b3
commit
2515b6d9ae
5 changed files with 370 additions and 11 deletions
18
ApiClient.js
18
ApiClient.js
|
@ -306,16 +306,20 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout, wi
|
|||
});
|
||||
};
|
||||
|
||||
self.getAvailableRemoteImages = function (itemId, imageType) {
|
||||
self.getAvailableRemoteImages = function (options) {
|
||||
|
||||
if (!itemId) {
|
||||
throw new Error("null itemId");
|
||||
}
|
||||
if (!imageType) {
|
||||
throw new Error("null imageType");
|
||||
if (!options) {
|
||||
throw new Error("null options");
|
||||
}
|
||||
|
||||
var url = self.getUrl("Items/" + itemId + "/RemoteImages/" + imageType);
|
||||
var urlPrefix = "Items/" + options.itemId;
|
||||
|
||||
var imageType = options.imageType;
|
||||
|
||||
delete options.itemId;
|
||||
delete options.imageType;
|
||||
|
||||
var url = self.getUrl(urlPrefix + "/RemoteImages/" + imageType, options);
|
||||
|
||||
return self.ajax({
|
||||
type: "GET",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue