From fd2f6fa1b3db0d98d6ecfb24dd96e118f06d2ae0 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 31 Oct 2013 11:39:09 -0400 Subject: [PATCH] #551 - Add manual image selection for movies --- ApiClient.js | 18 ++++++++++++++++++ packages.config | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/ApiClient.js b/ApiClient.js index 8e64e4300d..3606396652 100644 --- a/ApiClient.js +++ b/ApiClient.js @@ -306,6 +306,24 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout, wi }); }; + self.getAvailableRemoteImages = function (itemId, imageType) { + + if (!itemId) { + throw new Error("null itemId"); + } + if (!imageType) { + throw new Error("null imageType"); + } + + var url = self.getUrl("Items/" + itemId + "/RemoteImages/" + imageType); + + return self.ajax({ + type: "GET", + url: url, + dataType: "json" + }); + }; + /** * Gets the current server status */ diff --git a/packages.config b/packages.config index 02daa2cae4..22560b1331 100644 --- a/packages.config +++ b/packages.config @@ -1,6 +1,6 @@  - + \ No newline at end of file