From b912d891c0a159308dbfaed40b4d0c62a60de49b Mon Sep 17 00:00:00 2001 From: vapormusic Date: Wed, 17 Aug 2022 15:44:55 +0000 Subject: [PATCH 1/3] chore: Prettified Code [ci skip] --- src/main/plugins/raop.ts | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/src/main/plugins/raop.ts b/src/main/plugins/raop.ts index bd1709b8..8f4e08cd 100644 --- a/src/main/plugins/raop.ts +++ b/src/main/plugins/raop.ts @@ -87,19 +87,18 @@ 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 )})) - let shown_name = (host ?? "Unknown").replace(".local", "") + let shown_name = (host ?? "Unknown").replace(".local", ""); try { - let model = text.filter((u: any) => String(u).startsWith('model=')) - let manufacturer = text.filter((u: any) => String(u).startsWith('manufacturer=')) - let name = text.filter((u: any) => String(u).startsWith('name=')) + let model = text.filter((u: any) => String(u).startsWith("model=")); + let manufacturer = text.filter((u: any) => String(u).startsWith("manufacturer=")); + let name = text.filter((u: any) => String(u).startsWith("name=")); if (name.length > 0) { - shown_name = name[0].split("=")[1] + shown_name = name[0].split("=")[1]; + } else if (manufacturer.length > 0) { + shown_name = (manufacturer.length > 0 ? manufacturer[0].substring(13) : "") + " " + (model.length > 0 ? model[0].substring(6) : ""); + shown_name = shown_name.trim().length > 1 ? shown_name : (host ?? "Unknown").replace(".local", ""); } - else if (manufacturer.length > 0) { - shown_name = (manufacturer.length > 0 ? manufacturer[0].substring(13) : "") + " " + (model.length > 0 ? model[0].substring(6) : "") - shown_name = (shown_name.trim()).length > 1 ? shown_name : (host ?? "Unknown").replace(".local", "") - } - } catch(e){} + } catch (e) {} if ( this.castDevices.findIndex((item: any) => { return item != null && item.name == shown_name && item.port == port && item.host == (addresses ? addresses[0] : ""); From 09fc7770901896c93d5f829917ea389c6e51ee81 Mon Sep 17 00:00:00 2001 From: Core Date: Thu, 18 Aug 2022 03:58:17 +0100 Subject: [PATCH 2/3] #1366 --- src/renderer/style.less | 1 + 1 file changed, 1 insertion(+) diff --git a/src/renderer/style.less b/src/renderer/style.less index 3256db68..3f8c9e5d 100644 --- a/src/renderer/style.less +++ b/src/renderer/style.less @@ -902,6 +902,7 @@ input[type="range"].web-slider::-webkit-slider-runnable-track { > ._svg-icon { --size: var(--iconSize); + flex-shrink: 0; } } From 5bbd71a5b0c6c1d528c4339a015ea1692b0c0b55 Mon Sep 17 00:00:00 2001 From: Core Date: Thu, 18 Aug 2022 06:31:08 +0100 Subject: [PATCH 3/3] who tf does this --- src/i18n/en_US.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/i18n/en_US.json b/src/i18n/en_US.json index 036325b6..95a2e860 100644 --- a/src/i18n/en_US.json +++ b/src/i18n/en_US.json @@ -317,7 +317,7 @@ "menubar.options.toggledevtools": "Toggle Developer Tools", "menubar.options.window": "Window", "menubar.options.minimize": "Minimize", - "menubar.options.plugins": "Plu-gins Menu", + "menubar.options.plugins": "Plugins Menu", "menubar.options.controls": "Controls", "menubar.options.volumeup": "Volume Up", "menubar.options.volumedown": "Volume Down",