remove emby prefix from api requests

This commit is contained in:
dkanada 2019-07-30 23:26:12 -07:00
parent ee46631d00
commit 8f956658d4
2 changed files with 2 additions and 2 deletions

View File

@ -242,7 +242,7 @@ define(["events", "appStorage"], function(events, appStorage) {
var url = serverAddress || this._serverAddress;
if (!url) throw new Error("serverAddress is yet not set");
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) {
console.log("Requesting " + request.url), request.timeout = 3e4;
var instance = this;

View File

@ -40,7 +40,7 @@ define(["events", "apiclient", "appStorage"], function(events, apiClientFactory,
}
function getEmbyServerUrl(baseUrl, handler) {
return baseUrl + "/emby/" + handler
return baseUrl + "/" + handler
}
function getFetchPromise(request) {