Переглянути джерело

Merge pull request #10323 from hagaygo/master

Bond-009 1 рік тому
батько
коміт
caaf8f026e

+ 1 - 8
Emby.Server.Implementations/LiveTv/TunerHosts/M3uParser.cs

@@ -94,14 +94,7 @@ namespace Emby.Server.Implementations.LiveTv.TunerHosts
                 else if (!string.IsNullOrWhiteSpace(extInf) && !trimmedLine.StartsWith('#'))
                 else if (!string.IsNullOrWhiteSpace(extInf) && !trimmedLine.StartsWith('#'))
                 {
                 {
                     var channel = GetChannelnfo(extInf, tunerHostId, trimmedLine);
                     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;
                     channel.Path = trimmedLine;
                     channels.Add(channel);
                     channels.Add(channel);