mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Fix video paths
This commit is contained in:
parent
475813c42c
commit
aba3b68eea
@ -78,18 +78,18 @@ public class VideoApi : Controller
|
|||||||
await _Proxy($"{path}/master.m3u8");
|
await _Proxy($"{path}/master.m3u8");
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpGet("{path:base64}/{quality}/index.m3u8")]
|
[HttpGet("{path:base64}/{video:int}/{quality}/index.m3u8")]
|
||||||
[PartialPermission(Kind.Play)]
|
[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)]
|
[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")]
|
[HttpGet("{path:base64}/audio/{audio}/index.m3u8")]
|
||||||
|
@ -302,7 +302,7 @@ func main() {
|
|||||||
e.GET("/:path/master.m3u8", h.GetMaster)
|
e.GET("/:path/master.m3u8", h.GetMaster)
|
||||||
e.GET("/:path/:video/:quality/index.m3u8", h.GetVideoIndex)
|
e.GET("/:path/:video/:quality/index.m3u8", h.GetVideoIndex)
|
||||||
e.GET("/:path/audio/:audio/index.m3u8", h.GetAudioIndex)
|
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/audio/:audio/:chunk", h.GetAudioSegment)
|
||||||
e.GET("/:path/info", h.GetInfo)
|
e.GET("/:path/info", h.GetInfo)
|
||||||
e.GET("/:path/thumbnails.png", h.GetThumbnails)
|
e.GET("/:path/thumbnails.png", h.GetThumbnails)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user