diff options
| author | Felix Ruhnow <fruhnow@outlook.com> | 2019-02-10 22:23:47 +0100 |
|---|---|---|
| committer | Felix Ruhnow <fruhnow@outlook.com> | 2019-02-10 22:23:47 +0100 |
| commit | 86089ec03a4af121281154a6159cc70787571dbe (patch) | |
| tree | 1a33bb895aeeaff5c803e0db81fb15e423c7f499 /Emby.Server.Implementations | |
| parent | eb4b7051676b7493a57a99a821d5dd38bd9d4919 (diff) | |
Adding support for "tvg-chno"-Tag in M3U Channel Lists
Diffstat (limited to 'Emby.Server.Implementations')
| -rw-r--r-- | Emby.Server.Implementations/LiveTv/TunerHosts/M3uParser.cs | 8 |
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(); |
