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

This commit is contained in:
Felix Ruhnow 2019-02-10 22:23:47 +01:00
parent eb4b705167
commit 86089ec03a

View File

@ -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();