Bläddra i källkod

Make to work with current channel id values

Jose Alacan 9 år sedan
förälder
incheckning
caaa10e2d6
1 ändrade filer med 2 tillägg och 1 borttagningar
  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 = "";
                 }