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

update components

This commit is contained in:
Luke Pulverenti 2016-03-04 12:01:54 -05:00
parent da4fe2588b
commit 7dbb1f7535
4 changed files with 15 additions and 25 deletions

View file

@ -16,12 +16,12 @@
},
"devDependencies": {},
"ignore": [],
"version": "1.0.42",
"_release": "1.0.42",
"version": "1.0.43",
"_release": "1.0.43",
"_resolution": {
"type": "version",
"tag": "1.0.42",
"commit": "75aecc7f13e58f0f997afa7fdb37bc8326928fdd"
"tag": "1.0.43",
"commit": "5c5aeb79353f3a7d3e20a456d6f1506d660f8626"
},
"_source": "git://github.com/MediaBrowser/Emby.ApiClient.Javascript.git",
"_target": "~1.0.3",

View file

@ -1519,23 +1519,20 @@
return self.getAvailableServers().then(function (servers) {
var currentServerId = apiClient.serverInfo().Id;
var matchedServers = servers.filter(function (s) {
return stringEqualsIgnoreCase(s.Id, apiClient.serverInfo().Id);
return stringEqualsIgnoreCase(s.Id, currentServerId);
});
if (!matchedServers.length) {
return {};
}
var match = matchedServers.length ? matchedServers[0] : null;
var dateLastLocalConnection = match ? match.DateLastLocalConnection : null;
if (!dateLastLocalConnection) {
var match = matchedServers[0];
if (!match.DateLastLocalConnection) {
return ApiClient.getJSON(ApiClient.getUrl('System/Endpoint')).then(function (info) {
return apiClient.getJSON(apiClient.getUrl('System/Endpoint')).then(function (info) {
if (info.IsInNetwork) {
updateDateLastLocalConnection(match.Id);
updateDateLastLocalConnection(currentServerId);
return apiClient.getRegistrationInfo(feature);
} else {
return {};