浏览代码

Adding support for "tvg-chno"-Tag in M3U Channel Lists

Felix Ruhnow 6 年之前
父节点
当前提交
86089ec03a
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      Emby.Server.Implementations/LiveTv/TunerHosts/M3uParser.cs

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

@@ -204,6 +204,14 @@ namespace Emby.Server.Implementations.LiveTv.TunerHosts
                 }
             }
 
+            if (!IsValidChannelNumber(numberString))
+            {
+                if (attributes.TryGetValue("tvg-chno", out string value))
+                {
+                    numberString = value;
+                }
+            }
+
             if (!string.IsNullOrWhiteSpace(numberString))
             {
                 numberString = numberString.Trim();