From 687a4f4f1023dbe1e44ef8891626893d21a201ff Mon Sep 17 00:00:00 2001 From: Sylvain Date: Mon, 8 Jul 2024 20:10:36 +0200 Subject: [PATCH] Alow HEAD requests on /iptv/channels.m3u (#1779) --- ErsatzTV/Controllers/IptvController.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ErsatzTV/Controllers/IptvController.cs b/ErsatzTV/Controllers/IptvController.cs index 24669b57..dbc5de88 100644 --- a/ErsatzTV/Controllers/IptvController.cs +++ b/ErsatzTV/Controllers/IptvController.cs @@ -36,6 +36,7 @@ public class IptvController : ControllerBase _ffmpegSegmenterService = ffmpegSegmenterService; } + [HttpHead("iptv/channels.m3u")] [HttpGet("iptv/channels.m3u")] public Task GetChannelPlaylist( [FromQuery] @@ -50,6 +51,7 @@ public class IptvController : ControllerBase Request.Query["access_token"])) .Map(Ok); + [HttpHead("iptv/xmltv.xml")] [HttpGet("iptv/xmltv.xml")] public Task GetGuide() => _mediator.Send( @@ -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 GetLivePlaylist(string channelNumber, CancellationToken cancellationToken) {