From c3579ac91718dc782d82cda5966dd17ccab7d40f Mon Sep 17 00:00:00 2001 From: "every.channel" Date: Wed, 18 Feb 2026 00:02:03 -0800 Subject: [PATCH] nixos: use HDHR port 5004 for stream URLs --- nix/modules/ec-node.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nix/modules/ec-node.nix b/nix/modules/ec-node.nix index e519e82..a6e57a6 100644 --- a/nix/modules/ec-node.nix +++ b/nix/modules/ec-node.nix @@ -281,7 +281,12 @@ in base="http://$base" fi - input="$base/auto/v$ch" + # HDHomeRun streaming is on port 5004, regardless of the discover BaseURL. + hostport="''${base#http://}" + hostport="''${hostport#https://}" + hostport="''${hostport%%/*}" + host="''${hostport%%:*}" + input="http://$host:5004/auto/v$ch" fi cmd=(