From f4c8edb10a542fb36e0f399e6722d67985d47294 Mon Sep 17 00:00:00 2001 From: vapormusic Date: Mon, 1 Aug 2022 23:33:11 +0700 Subject: [PATCH] weird --- src/main/plugins/raop.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/plugins/raop.ts b/src/main/plugins/raop.ts index 0116746d..b532c681 100644 --- a/src/main/plugins/raop.ts +++ b/src/main/plugins/raop.ts @@ -89,10 +89,10 @@ export default class RAOP { `; private ondeviceup(name: any, host: any, port: any, addresses: any, text: any, airplay2: any = null) { - console.log(this.castDevices.findIndex((item: any) => {return (item.name == host.replace(".local","") && item.port == port )})) + // console.log(this.castDevices.findIndex((item: any) => {return (item.name == host.replace(".local","") && item.port == port )})) if (this.castDevices.findIndex((item: any) => {return (item.name == host.replace(".local","") && item.port == port )}) == -1) { this.castDevices.push({ - name: host.replace(".local",""), + name: (host ?? "Unknown").replace(".local",""), host: addresses ? addresses[0] : '', port: port, addresses: addresses,