aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Emby.Server.Implementations/LiveTv/TunerHosts/M3uParser.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/LiveTv/TunerHosts/M3uParser.cs b/Emby.Server.Implementations/LiveTv/TunerHosts/M3uParser.cs
index 9a01c42d3..e10c44501 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();