1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

hide image buttons when there are no providers

This commit is contained in:
Luke Pulverenti 2013-11-05 10:38:59 -05:00
parent 3b7184b5f4
commit 4583cf5b52
4 changed files with 53 additions and 18 deletions

View file

@ -342,6 +342,23 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout, wi
return urlPrefix;
}
self.getRemoteImageProviders = function (options) {
if (!options) {
throw new Error("null options");
}
var urlPrefix = getRemoteImagePrefix(options);
var url = self.getUrl(urlPrefix + "/RemoteImages/Providers", options);
return self.ajax({
type: "GET",
url: url,
dataType: "json"
});
};
self.getAvailableRemoteImages = function (options) {
if (!options) {