aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHagay Goshen <hagay.goshen@gmail.com>2023-10-02 13:48:32 +0300
committerHagay Goshen <hagay.goshen@gmail.com>2023-10-02 13:48:32 +0300
commit34c4c9f034b316030245d86e23502bca5488f88a (patch)
tree920000537034177dcfdf3446e7808e37fc042045
parent35d6c1465301689de098748a43fe12a282fcaec3 (diff)
allow repeated same tv guide m3u channels , issue 6527
-rw-r--r--Emby.Server.Implementations/LiveTv/TunerHosts/M3uParser.cs9
1 files changed, 1 insertions, 8 deletions
diff --git a/Emby.Server.Implementations/LiveTv/TunerHosts/M3uParser.cs b/Emby.Server.Implementations/LiveTv/TunerHosts/M3uParser.cs
index df9101f48..341782d9d 100644
--- a/Emby.Server.Implementations/LiveTv/TunerHosts/M3uParser.cs
+++ b/Emby.Server.Implementations/LiveTv/TunerHosts/M3uParser.cs
@@ -94,14 +94,7 @@ namespace Emby.Server.Implementations.LiveTv.TunerHosts
else if (!string.IsNullOrWhiteSpace(extInf) && !trimmedLine.StartsWith('#'))
{
var channel = GetChannelnfo(extInf, tunerHostId, trimmedLine);
- if (string.IsNullOrWhiteSpace(channel.Id))
- {
- channel.Id = channelIdPrefix + trimmedLine.GetMD5().ToString("N", CultureInfo.InvariantCulture);
- }
- else
- {
- channel.Id = channelIdPrefix + channel.Id.GetMD5().ToString("N", CultureInfo.InvariantCulture);
- }
+ channel.Id = channelIdPrefix + trimmedLine.GetMD5().ToString("N", CultureInfo.InvariantCulture);
channel.Path = trimmedLine;
channels.Add(channel);