소스 검색

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 = "";
                 }