The Free Software Media System - Server Backend & API
Add 'group-title' channel parsing
LIAUD32853ca2441d
diff --git a/Emby.Server.Implementations/LiveTv/TunerHosts/M3uParser.cs b/Emby.Server.Implementations/LiveTv/TunerHosts/M3uParser.csindex c4f173c7ac..2af635492e 100644--- a/Emby.Server.Implementations/LiveTv/TunerHosts/M3uParser.cs+++ b/Emby.Server.Implementations/LiveTv/TunerHosts/M3uParser.cs@@ -133,6 +133,11 @@ namespace Emby.Server.Implementations.LiveTv.TunerHostschannel.ImageUrl = value;}+ if (attributes.TryGetValue("group-title", out string groupTitle))+ {+ channel.ChannelGroup = groupTitle;+ }+channel.Name = GetChannelName(extInf, attributes);channel.Number = GetChannelNumber(extInf, attributes, mediaUrl);diff --git a/MediaBrowser.Controller/LiveTv/ChannelInfo.cs b/MediaBrowser.Controller/LiveTv/ChannelInfo.csindex 44bd38b54f..0f3f878475 100644--- a/MediaBrowser.Controller/LiveTv/ChannelInfo.cs+++ b/MediaBrowser.Controller/LiveTv/ChannelInfo.cs@@ -45,6 +45,12 @@ namespace MediaBrowser.Controller.LiveTv/// <value>The type of the channel.</value>public ChannelType ChannelType { get; set; }+ /// <summary>+ /// Gets or sets the group of the channel+ /// </summary>+ /// <value>The group of the channel</value>+ public string ChannelGroup { get; set; }+/// <summary>/// Supply the image path if it can be accessed directly from the file system./// </summary>