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

support api without /mediabrowser

This commit is contained in:
Luke Pulverenti 2015-01-17 14:30:23 -05:00
parent 3ee2a15358
commit 248c09b642
4 changed files with 20 additions and 19 deletions

View file

@ -66,7 +66,7 @@
return $.ajax({
type: "GET",
url: url + "/mediabrowser/system/info/public",
url: url + "/system/info/public",
dataType: "json",
timeout: timeout || 15000
@ -268,7 +268,7 @@
var url = connectionMode == MediaBrowser.ConnectionMode.Local ? server.LocalAddress : server.RemoteAddress;
url += "/mediabrowser/Connect/Exchange?format=json&ConnectUserId=" + credentials.ConnectUserId;
url += "/Connect/Exchange?format=json&ConnectUserId=" + credentials.ConnectUserId;
return $.ajax({
type: "GET",
@ -299,7 +299,7 @@
$.ajax({
type: "GET",
url: url + "/mediabrowser/system/info",
url: url + "/system/info",
dataType: "json",
headers: {
"X-MediaBrowser-Token": server.AccessToken
@ -314,7 +314,7 @@
$.ajax({
type: "GET",
url: url + "/mediabrowser/users/" + server.UserId,
url: url + "/users/" + server.UserId,
dataType: "json",
headers: {
"X-MediaBrowser-Token": server.AccessToken

View file

@ -49,7 +49,7 @@
self.apiPrefix = function () {
return "/mediabrowser";
return "";
};
self.serverInfo = function (info) {
@ -189,7 +189,7 @@
$.ajax({
type: "GET",
url: url + "/mediabrowser/system/info/public",
url: url + "/system/info/public",
dataType: "json",
timeout: 15000