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

use server to build initial stream url's

This commit is contained in:
Luke Pulverenti 2015-03-26 12:58:02 -04:00
parent c64474f046
commit 1fc390dc50
3 changed files with 375 additions and 295 deletions

View file

@ -306,7 +306,13 @@
throw new Error("Url name cannot be empty");
}
var url = serverAddress + "/" + name;
var url = serverAddress;
if (name.charAt(0) != '/') {
url += '/';
}
url += name;
if (params) {
url += "?" + AjaxApi.param(params);