attempt fixes for ap
This commit is contained in:
parent
cccfccaba8
commit
c540805324
1 changed files with 4 additions and 4 deletions
|
@ -103,7 +103,7 @@ export default class RAOP {
|
||||||
|
|
||||||
if (
|
if (
|
||||||
this.castDevices.findIndex((item: any) => {
|
this.castDevices.findIndex((item: any) => {
|
||||||
return item != null && item.name == shown_name && item.port == port && item.host == host_name;
|
return item != null && item.name == shown_name && item.port == port && item.host == host_name && item.host != "Unknown";
|
||||||
}) == -1
|
}) == -1
|
||||||
) {
|
) {
|
||||||
this.castDevices.push({
|
this.castDevices.push({
|
||||||
|
@ -114,9 +114,9 @@ export default class RAOP {
|
||||||
txt: text,
|
txt: text,
|
||||||
airplay2: airplay2,
|
airplay2: airplay2,
|
||||||
});
|
});
|
||||||
if (this.devices.indexOf(host_name) === -1) {
|
// if (this.devices.indexOf(host_name) === -1) {
|
||||||
this.devices.push(host_name);
|
// this.devices.push(host_name);
|
||||||
}
|
// }
|
||||||
if (shown_name) {
|
if (shown_name) {
|
||||||
this._win.webContents.executeJavaScript(`console.log('deviceFound','ip: ${host_name} name:${shown_name}')`).catch((err: any) => console.error(err));
|
this._win.webContents.executeJavaScript(`console.log('deviceFound','ip: ${host_name} name:${shown_name}')`).catch((err: any) => console.error(err));
|
||||||
console.log("deviceFound", host_name, shown_name);
|
console.log("deviceFound", host_name, shown_name);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue