mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix audio-only hls
This commit is contained in:
parent
e396019903
commit
2e982826bb
13 changed files with 99 additions and 57 deletions
10
dashboard-ui/thirdparty/apiclient/credentials.js
vendored
10
dashboard-ui/thirdparty/apiclient/credentials.js
vendored
|
@ -48,6 +48,10 @@
|
|||
|
||||
self.addOrUpdateServer = function (list, server) {
|
||||
|
||||
if (!server.Id) {
|
||||
throw new Error('Server.Id cannot be null or empty');
|
||||
}
|
||||
|
||||
var existing = list.filter(function (s) {
|
||||
return s.Id == server.Id;
|
||||
})[0];
|
||||
|
@ -76,9 +80,15 @@
|
|||
if (server.WakeOnLanInfos && server.WakeOnLanInfos.length) {
|
||||
existing.WakeOnLanInfos = server.WakeOnLanInfos;
|
||||
}
|
||||
if (server.LastConnectionMode != null) {
|
||||
existing.LastConnectionMode = server.LastConnectionMode;
|
||||
}
|
||||
|
||||
return existing;
|
||||
}
|
||||
else {
|
||||
list.push(server);
|
||||
return server;
|
||||
}
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue