From 63094f7e49ca933f665517e49400cbf54ad34bf9 Mon Sep 17 00:00:00 2001 From: James Magahern Date: Sat, 7 Jun 2025 11:39:56 -0700 Subject: [PATCH] zeroconf: add hostname to service name --- backend/src/MediaPlayer.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/MediaPlayer.ts b/backend/src/MediaPlayer.ts index 512fc65..599ae0a 100644 --- a/backend/src/MediaPlayer.ts +++ b/backend/src/MediaPlayer.ts @@ -23,6 +23,7 @@ import { getLinkPreview } from "link-preview-js"; import { PlaylistItem, LinkMetadata } from './types'; import { FavoritesStore } from "./FavoritesStore"; import { Bonjour } from "bonjour-service"; +import os from 'os'; interface PendingCommand { resolve: (value: any) => void; @@ -69,7 +70,7 @@ export class MediaPlayer { this.bonjourInstance = new Bonjour(); const service = this.bonjourInstance.publish({ - name: 'QueueCube Media Server', + name: `QueueCube Media Server (${os.hostname()})`, type: 'queuecube', port: port, txt: {