Browse Source

fix HDHR channel routes (#10)

pull/11/head
Jason Dove 5 years ago committed by GitHub
parent
commit
941f1a59ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      ErsatzTV.Core/Hdhr/LineupItem.cs

7
ErsatzTV.Core/Hdhr/LineupItem.cs

@ -19,6 +19,11 @@ namespace ErsatzTV.Core.Hdhr @@ -19,6 +19,11 @@ namespace ErsatzTV.Core.Hdhr
public string GuideNumber => _channel.Number.ToString();
public string GuideName => _channel.Name;
public string URL => $"{_scheme}://{_host}/iptv/channel/{_channel.Number}";
public string URL => _channel.StreamingMode switch
{
StreamingMode.HttpLiveStreaming => $"{_scheme}://{_host}/iptv/channel/{_channel.Number}.m3u8",
_ => $"{_scheme}://{_host}/iptv/channel/{_channel.Number}.ts"
};
}
}

Loading…
Cancel
Save