Преглед изворни кода

Make to work with current channel id values

Jose Alacan пре 9 година
родитељ
комит
caaa10e2d6
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      MediaBrowser.Server.Implementations/LiveTv/TunerHosts/M3uParser.cs

+ 2 - 1
MediaBrowser.Server.Implementations/LiveTv/TunerHosts/M3uParser.cs

@@ -71,7 +71,8 @@ namespace MediaBrowser.Server.Implementations.LiveTv.TunerHosts
                 else if (!string.IsNullOrWhiteSpace(extInf))
                 {   
                     var channel = GetChannelnfo(extInf);
-                    channel.Id = line;
+                    channel.Id = channelIdPrefix + urlHash + line.GetMD5().ToString("N");
+                    channel.Path = line;
                     channels.Add(channel);
                     extInf = "";
                 }