Browse Source

Adding more HEAD handling (https://github.com/ErsatzTV/ErsatzTV/pull/1786) (#1787)

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

3
ErsatzTV/Controllers/IptvController.cs

@ -62,6 +62,7 @@ public class IptvController : ControllerBase @@ -62,6 +62,7 @@ public class IptvController : ControllerBase
Request.Query["access_token"]))
.ToActionResult();
[HttpHead("iptv/hdhr/channel/{channelNumber}.ts")]
[HttpGet("iptv/hdhr/channel/{channelNumber}.ts")]
public Task<IActionResult> GetHDHRVideo(string channelNumber, [FromQuery] string mode = "ts")
{
@ -74,6 +75,7 @@ public class IptvController : ControllerBase @@ -74,6 +75,7 @@ public class IptvController : ControllerBase
return GetTransportStreamVideo(channelNumber, mode);
}
[HttpHead("iptv/channel/{channelNumber}.ts")]
[HttpGet("iptv/channel/{channelNumber}.ts")]
public async Task<IActionResult> GetTransportStreamVideo(
string channelNumber,
@ -254,6 +256,7 @@ public class IptvController : ControllerBase @@ -254,6 +256,7 @@ public class IptvController : ControllerBase
}
}
[HttpHead("iptv/logos/{fileName}")]
[HttpGet("iptv/logos/{fileName}")]
[HttpHead("iptv/logos/{fileName}.jpg")]
[HttpGet("iptv/logos/{fileName}.jpg")]

Loading…
Cancel
Save