mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-26 10:36:57 +01:00
#551 - Add manual image selection for movies
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user