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

3.0.5306.42925

This commit is contained in:
Luke Pulverenti 2014-07-13 00:55:56 -04:00
parent 7f17e93738
commit 2d1a56ded3
5 changed files with 55 additions and 34 deletions

View file

@ -57,6 +57,11 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout, wi
return serverAddress;
};
self.apiPrefix = function () {
return "/mediabrowser";
};
/**
* Gets or sets the current user id.
*/
@ -176,7 +181,7 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout, wi
var url = serverAddress;
url += "/mediabrowser/" + name;
url += self.apiPrefix() + "/" + name;
if (params) {
url += "?" + $.param(params);
@ -187,7 +192,7 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout, wi
self.openWebSocket = function (webSocketAddress) {
var url = webSocketAddress + "/mediabrowser";
var url = webSocketAddress + self.apiPrefix();
webSocket = new WebSocket(url);
@ -2159,7 +2164,7 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout, wi
options.maxHeight = Math.round(options.maxHeight * ratio);
}
}
options.quality = options.quality || (options.type.toLowerCase() == 'backdrop' ? 80 : 90);
}