diff --git a/back/src/Kyoo.Core/Views/Content/VideoApi.cs b/back/src/Kyoo.Core/Views/Content/VideoApi.cs index e3deb132..7b67be57 100644 --- a/back/src/Kyoo.Core/Views/Content/VideoApi.cs +++ b/back/src/Kyoo.Core/Views/Content/VideoApi.cs @@ -78,18 +78,18 @@ public class VideoApi : Controller await _Proxy($"{path}/master.m3u8"); } - [HttpGet("{path:base64}/{quality}/index.m3u8")] + [HttpGet("{path:base64}/{video:int}/{quality}/index.m3u8")] [PartialPermission(Kind.Play)] - public async Task GetVideoIndex(string path, string quality) + public async Task GetVideoIndex(string path, int video, string quality) { - await _Proxy($"{path}/{quality}/index.m3u8"); + await _Proxy($"{path}/{video}/{quality}/index.m3u8"); } - [HttpGet("{path:base64}/{quality}/{segment}")] + [HttpGet("{path:base64}/{video:int}/{quality}/{segment}")] [PartialPermission(Kind.Play)] - public async Task GetVideoSegment(string path, string quality, string segment) + public async Task GetVideoSegment(string path, int video, string quality, string segment) { - await _Proxy($"{path}/{quality}/{segment}"); + await _Proxy($"{path}/{video}/{quality}/{segment}"); } [HttpGet("{path:base64}/audio/{audio}/index.m3u8")] diff --git a/transcoder/main.go b/transcoder/main.go index e36975b3..da81cff4 100644 --- a/transcoder/main.go +++ b/transcoder/main.go @@ -302,7 +302,7 @@ func main() { e.GET("/:path/master.m3u8", h.GetMaster) e.GET("/:path/:video/:quality/index.m3u8", h.GetVideoIndex) e.GET("/:path/audio/:audio/index.m3u8", h.GetAudioIndex) - e.GET("/:path/:quality/:chunk", h.GetVideoSegment) + e.GET("/:path/:video/:quality/:chunk", h.GetVideoSegment) e.GET("/:path/audio/:audio/:chunk", h.GetAudioSegment) e.GET("/:path/info", h.GetInfo) e.GET("/:path/thumbnails.png", h.GetThumbnails)