Skip to content

The Free Software Media System - Server Backend & API

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

Felix Ruhnow86089ec03a4a
diff --git a/Emby.Server.Implementations/LiveTv/TunerHosts/M3uParser.cs b/Emby.Server.Implementations/LiveTv/TunerHosts/M3uParser.cs
index 9a01c42d3b..e10c445019 100644
--- a/Emby.Server.Implementations/LiveTv/TunerHosts/M3uParser.cs
+++ b/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();