From 59f0cd7ee29e1d4b699f1af3fc367d5b15da76d3 Mon Sep 17 00:00:00 2001 From: vapormusic Date: Sun, 1 May 2022 22:02:56 +0700 Subject: [PATCH] some cleanup --- 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 be9bc577..a4d70aba 100644 --- a/src/main/plugins/raop.ts +++ b/src/main/plugins/raop.ts @@ -89,9 +89,9 @@ export default class RAOP { `; private ondeviceup(name: any, host: any, port: any, addresses: any, text: any) { - if (this.castDevices.findIndex((item: any) => item.name === host && item.port === port && item.addresses === addresses) === -1) { + if (this.castDevices.findIndex((item: any) => item.name == host.replace(".local","") && item.port == port && item.addresses == addresses) === -1) { this.castDevices.push({ - name: host, + name: host.replace(".local",""), host: addresses ? addresses[0] : '', port: port, addresses: addresses,