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:
parent
c64474f046
commit
1fc390dc50
3 changed files with 375 additions and 295 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue