mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
remove emby prefix from api requests
This commit is contained in:
parent
ee46631d00
commit
8f956658d4
@ -242,7 +242,7 @@ define(["events", "appStorage"], function(events, appStorage) {
|
|||||||
var url = serverAddress || this._serverAddress;
|
var url = serverAddress || this._serverAddress;
|
||||||
if (!url) throw new Error("serverAddress is yet not set");
|
if (!url) throw new Error("serverAddress is yet not set");
|
||||||
var lowered = url.toLowerCase();
|
var lowered = url.toLowerCase();
|
||||||
return -1 === lowered.indexOf("/emby") && -1 === lowered.indexOf("/mediabrowser") && (url += "/emby"), "/" !== name.charAt(0) && (url += "/"), url += name, params && (params = paramsToString(params)) && (url += "?" + params), url
|
return "/" !== name.charAt(0) && (url += "/"), url += name, params && (params = paramsToString(params)) && (url += "?" + params), url
|
||||||
}, ApiClient.prototype.fetchWithFailover = function(request, enableReconnection) {
|
}, ApiClient.prototype.fetchWithFailover = function(request, enableReconnection) {
|
||||||
console.log("Requesting " + request.url), request.timeout = 3e4;
|
console.log("Requesting " + request.url), request.timeout = 3e4;
|
||||||
var instance = this;
|
var instance = this;
|
||||||
|
@ -40,7 +40,7 @@ define(["events", "apiclient", "appStorage"], function(events, apiClientFactory,
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getEmbyServerUrl(baseUrl, handler) {
|
function getEmbyServerUrl(baseUrl, handler) {
|
||||||
return baseUrl + "/emby/" + handler
|
return baseUrl + "/" + handler
|
||||||
}
|
}
|
||||||
|
|
||||||
function getFetchPromise(request) {
|
function getFetchPromise(request) {
|
||||||
|
Loading…
Reference in New Issue
Block a user