Browse Source

Alow HEAD requests on /iptv/channels.m3u (#1779)

pull/1780/head
Sylvain 1 year ago committed by GitHub
parent
commit
687a4f4f10
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      ErsatzTV/Controllers/IptvController.cs

3
ErsatzTV/Controllers/IptvController.cs

@ -36,6 +36,7 @@ public class IptvController : ControllerBase @@ -36,6 +36,7 @@ public class IptvController : ControllerBase
_ffmpegSegmenterService = ffmpegSegmenterService;
}
[HttpHead("iptv/channels.m3u")]
[HttpGet("iptv/channels.m3u")]
public Task<IActionResult> GetChannelPlaylist(
[FromQuery]
@ -50,6 +51,7 @@ public class IptvController : ControllerBase @@ -50,6 +51,7 @@ public class IptvController : ControllerBase
Request.Query["access_token"]))
.Map<ChannelPlaylist, IActionResult>(Ok);
[HttpHead("iptv/xmltv.xml")]
[HttpGet("iptv/xmltv.xml")]
public Task<IActionResult> GetGuide() =>
_mediator.Send(
@ -142,6 +144,7 @@ public class IptvController : ControllerBase @@ -142,6 +144,7 @@ public class IptvController : ControllerBase
error => BadRequest(error.Value)));
}
[HttpHead("iptv/session/{channelNumber}/hls.m3u8")]
[HttpGet("iptv/session/{channelNumber}/hls.m3u8")]
public async Task<IActionResult> GetLivePlaylist(string channelNumber, CancellationToken cancellationToken)
{

Loading…
Cancel
Save