From a2b3cf52b867be367d5abc9297c4ddfd1382617e Mon Sep 17 00:00:00 2001 From: Lex Rivera Date: Mon, 16 Feb 2026 20:46:42 +0300 Subject: [PATCH] actually use env variable for instance ID --- ErsatzTV.Core/Iptv/ChannelIdentifier.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ErsatzTV.Core/Iptv/ChannelIdentifier.cs b/ErsatzTV.Core/Iptv/ChannelIdentifier.cs index c172fa194..d2d6e79a8 100644 --- a/ErsatzTV.Core/Iptv/ChannelIdentifier.cs +++ b/ErsatzTV.Core/Iptv/ChannelIdentifier.cs @@ -1,4 +1,5 @@ using System.Globalization; +using System.Runtime.InteropServices; namespace ErsatzTV.Core.Iptv; @@ -8,6 +9,7 @@ public static class ChannelIdentifier public static string FromNumber(string channelNumber) { + string instanceID = SystemEnvironment.InstanceID; // get rid of any decimal (only two are allowed) var number = (int)(decimal.Parse(channelNumber, CultureInfo.InvariantCulture) * 100); var id = 0; @@ -17,6 +19,6 @@ public static class ChannelIdentifier number /= 10; } - return $"C{channelNumber}.{id}.{SystemEnvironment.InstanceID}"; + return $"C{channelNumber}.{id}.{instanceID}"; } }