Explorar el Código

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

Felix Ruhnow hace 6 años
padre
commit
86089ec03a
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  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))
             if (!string.IsNullOrWhiteSpace(numberString))
             {
             {
                 numberString = numberString.Trim();
                 numberString = numberString.Trim();