Add 'group-title' channel parsing
This commit is contained in:
parent
9fe3ca7a92
commit
32853ca244
|
@ -133,6 +133,11 @@ namespace Emby.Server.Implementations.LiveTv.TunerHosts
|
||||||
channel.ImageUrl = value;
|
channel.ImageUrl = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (attributes.TryGetValue("group-title", out string groupTitle))
|
||||||
|
{
|
||||||
|
channel.ChannelGroup = groupTitle;
|
||||||
|
}
|
||||||
|
|
||||||
channel.Name = GetChannelName(extInf, attributes);
|
channel.Name = GetChannelName(extInf, attributes);
|
||||||
channel.Number = GetChannelNumber(extInf, attributes, mediaUrl);
|
channel.Number = GetChannelNumber(extInf, attributes, mediaUrl);
|
||||||
|
|
||||||
|
|
|
@ -45,6 +45,12 @@ namespace MediaBrowser.Controller.LiveTv
|
||||||
/// <value>The type of the channel.</value>
|
/// <value>The type of the channel.</value>
|
||||||
public ChannelType ChannelType { get; set; }
|
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>
|
/// <summary>
|
||||||
/// Supply the image path if it can be accessed directly from the file system.
|
/// Supply the image path if it can be accessed directly from the file system.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user