add subchannel support (#53)
This commit is contained in:
@@ -8,7 +8,7 @@ namespace ErsatzTV.Core.Domain
|
||||
public Channel(Guid uniqueId) => UniqueId = uniqueId;
|
||||
public int Id { get; set; }
|
||||
public Guid UniqueId { get; init; }
|
||||
public int Number { get; set; }
|
||||
public string Number { get; set; }
|
||||
public string Name { get; set; }
|
||||
public int FFmpegProfileId { get; set; }
|
||||
public FFmpegProfile FFmpegProfile { get; set; }
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
namespace ErsatzTV.Core.FFmpeg
|
||||
{
|
||||
public record ConcatPlaylist(string Scheme, string Host, int ChannelNumber)
|
||||
public record ConcatPlaylist(string Scheme, string Host, string ChannelNumber)
|
||||
{
|
||||
public override string ToString() =>
|
||||
$@"ffconcat version 1.0
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace ErsatzTV.Core.Hdhr
|
||||
_channel = channel;
|
||||
}
|
||||
|
||||
public string GuideNumber => _channel.Number.ToString();
|
||||
public string GuideNumber => _channel.Number;
|
||||
public string GuideName => _channel.Name;
|
||||
|
||||
public string URL => _channel.StreamingMode switch
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace ErsatzTV.Core.Interfaces.Repositories
|
||||
{
|
||||
Task<Channel> Add(Channel channel);
|
||||
Task<Option<Channel>> Get(int id);
|
||||
Task<Option<Channel>> GetByNumber(int number);
|
||||
Task<Option<Channel>> GetByNumber(string number);
|
||||
Task<List<Channel>> GetAll();
|
||||
Task<List<Channel>> GetAllForGuide();
|
||||
Task Update(Channel channel);
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace ErsatzTV.Core.Iptv
|
||||
foreach (Channel channel in _channels)
|
||||
{
|
||||
xml.WriteStartElement("channel");
|
||||
xml.WriteAttributeString("id", channel.Number.ToString());
|
||||
xml.WriteAttributeString("id", channel.Number);
|
||||
|
||||
xml.WriteStartElement("display-name");
|
||||
xml.WriteAttributeString("lang", "en");
|
||||
@@ -87,7 +87,7 @@ namespace ErsatzTV.Core.Iptv
|
||||
xml.WriteStartElement("programme");
|
||||
xml.WriteAttributeString("start", start);
|
||||
xml.WriteAttributeString("stop", stop);
|
||||
xml.WriteAttributeString("channel", channel.Number.ToString());
|
||||
xml.WriteAttributeString("channel", channel.Number);
|
||||
|
||||
xml.WriteStartElement("title");
|
||||
xml.WriteAttributeString("lang", "en");
|
||||
|
||||
Reference in New Issue
Block a user