update components
This commit is contained in:
parent
daee1ecd45
commit
517965f4bd
5 changed files with 132 additions and 28 deletions
|
@ -16,12 +16,12 @@
|
|||
},
|
||||
"devDependencies": {},
|
||||
"ignore": [],
|
||||
"version": "1.0.19",
|
||||
"_release": "1.0.19",
|
||||
"version": "1.0.20",
|
||||
"_release": "1.0.20",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "1.0.19",
|
||||
"commit": "09f50cd4f4b126b0ea9a0a26c1b425b4a1e25f5b"
|
||||
"tag": "1.0.20",
|
||||
"commit": "55cf67710a438d3eea15f58587b2c2fcd731bf29"
|
||||
},
|
||||
"_source": "git://github.com/MediaBrowser/Emby.ApiClient.Javascript.git",
|
||||
"_target": "~1.0.3",
|
||||
|
|
|
@ -850,24 +850,27 @@
|
|||
|
||||
return new Promise(function (resolve, reject) {
|
||||
|
||||
var onFinish = function (foundServers) {
|
||||
var servers = foundServers.map(function (foundServer) {
|
||||
|
||||
var info = {
|
||||
Id: foundServer.Id,
|
||||
LocalAddress: foundServer.Address,
|
||||
Name: foundServer.Name,
|
||||
ManualAddress: convertEndpointAddressToManualAddress(foundServer),
|
||||
DateLastLocalConnection: new Date().getTime()
|
||||
};
|
||||
|
||||
info.LastConnectionMode = info.ManualAddress ? ConnectionMode.Manual : ConnectionMode.Local;
|
||||
|
||||
return info;
|
||||
});
|
||||
resolve(servers);
|
||||
};
|
||||
|
||||
require(['serverdiscovery'], function (serverDiscovery) {
|
||||
serverDiscovery.findServers(1000).then(function (foundServers) {
|
||||
|
||||
var servers = foundServers.map(function (foundServer) {
|
||||
|
||||
var info = {
|
||||
Id: foundServer.Id,
|
||||
LocalAddress: foundServer.Address,
|
||||
Name: foundServer.Name,
|
||||
ManualAddress: convertEndpointAddressToManualAddress(foundServer),
|
||||
DateLastLocalConnection: new Date().getTime()
|
||||
};
|
||||
|
||||
info.LastConnectionMode = info.ManualAddress ? ConnectionMode.Manual : ConnectionMode.Local;
|
||||
|
||||
return info;
|
||||
});
|
||||
resolve(servers);
|
||||
serverDiscovery.findServers(1000).then(onFinish, function () {
|
||||
onFinish([]);
|
||||
});
|
||||
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue