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=(