diff options
| author | Bond-009 <bond.009@outlook.com> | 2023-10-03 11:05:20 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-03 11:05:20 +0200 |
| commit | caaf8f026ed5ed3c9333f5a51cfda22ec2b2c664 (patch) | |
| tree | f3b11805cdc2a8cc16f2f2c4c2218c7e273f9004 | |
| parent | 14b06ecbe29f6b9120048ea6d0b993778921a6a6 (diff) | |
| parent | 34c4c9f034b316030245d86e23502bca5488f88a (diff) | |
Merge pull request #10323 from hagaygo/master
| -rw-r--r-- | Emby.Server.Implementations/LiveTv/TunerHosts/M3uParser.cs | 9 |
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); |
