mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update translations
This commit is contained in:
parent
9e470c9f94
commit
7e55abc130
5 changed files with 144 additions and 96 deletions
|
@ -122,6 +122,19 @@
|
|||
|
||||
apiClients.push(apiClient);
|
||||
|
||||
var existingServer = credentialProvider.credentials().servers.filter(function (s) {
|
||||
|
||||
return stringEqualsIgnoreCase(s.ManualAddress, apiClient.serverAddress());
|
||||
|
||||
})[0];
|
||||
|
||||
if (existingServer) {
|
||||
|
||||
existingServer.DateLastAccessed = new Date().getTime();
|
||||
existingServer.LastConnectionMode = MediaBrowser.ConnectionMode.Manual;
|
||||
apiClient.serverInfo(existingServer);
|
||||
}
|
||||
|
||||
Events.on(apiClient, 'authenticated', function (e, result) {
|
||||
onAuthenticated(this, result, {}, true);
|
||||
});
|
||||
|
@ -130,7 +143,9 @@
|
|||
|
||||
return apiClient.getPublicSystemInfo().done(function (systemInfo) {
|
||||
|
||||
var server = credentialProvider.credentials().servers.filter(function (s) {
|
||||
var credentials = credentialProvider.credentials();
|
||||
|
||||
var server = credentials.servers.filter(function (s) {
|
||||
|
||||
return s.Id == systemInfo.Id;
|
||||
|
||||
|
@ -138,7 +153,14 @@
|
|||
|
||||
updateServerInfo(server, systemInfo);
|
||||
|
||||
server.DateLastAccessed = new Date().getTime();
|
||||
server.LastConnectionMode = MediaBrowser.ConnectionMode.Manual;
|
||||
server.ManualAddress = apiClient.serverAddress();
|
||||
|
||||
apiClient.serverInfo(server);
|
||||
|
||||
credentialProvider.addOrUpdateServer(credentials.servers, server);
|
||||
credentialProvider.credentials(credentials);
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue