瀏覽代碼

Merge pull request #6485 from markshark05/patch-1

Update M3U Channel Name Precedence
Claus Vium 3 年之前
父節點
當前提交
ffef1baa2f
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Emby.Server.Implementations/LiveTv/TunerHosts/M3uParser.cs

+ 2 - 2
Emby.Server.Implementations/LiveTv/TunerHosts/M3uParser.cs

@@ -295,11 +295,11 @@ namespace Emby.Server.Implementations.LiveTv.TunerHosts
                 }
                 }
             }
             }
 
 
-            attributes.TryGetValue("tvg-name", out string name);
+            string name = nameInExtInf;
 
 
             if (string.IsNullOrWhiteSpace(name))
             if (string.IsNullOrWhiteSpace(name))
             {
             {
-                name = nameInExtInf;
+                attributes.TryGetValue("tvg-name", out name);
             }
             }
 
 
             if (string.IsNullOrWhiteSpace(name))
             if (string.IsNullOrWhiteSpace(name))