fix(video): 修复视频下载链接
- 将 video2.yuchat.top 域名改为 video.yuchat.top - 更新 m3u8 文件下载 URL
This commit is contained in:
parent
b74f79f721
commit
9eb1fea369
@ -247,7 +247,7 @@ public class MadouVideoService extends ServiceImpl<MadouVideoMapper, MadouVideoI
|
|||||||
|
|
||||||
public void downloadTs(Long id, String ts) throws IOException {
|
public void downloadTs(Long id, String ts) throws IOException {
|
||||||
// https://video.yuchat.top/m3u8/{id}/{ts} 去获取内容
|
// https://video.yuchat.top/m3u8/{id}/{ts} 去获取内容
|
||||||
String url = "https://video2.yuchat.top/m3u8/" + id + "/" + ts;
|
String url = "https://video.yuchat.top/m3u8/" + id + "/" + ts;
|
||||||
try {
|
try {
|
||||||
httpRequestComponent.download(url, httpServletResponse.getOutputStream());
|
httpRequestComponent.download(url, httpServletResponse.getOutputStream());
|
||||||
return;
|
return;
|
||||||
@ -266,7 +266,7 @@ public class MadouVideoService extends ServiceImpl<MadouVideoMapper, MadouVideoI
|
|||||||
if (madouVideoInfo == null) {
|
if (madouVideoInfo == null) {
|
||||||
throw new RuntimeException("视频不存在");
|
throw new RuntimeException("视频不存在");
|
||||||
}
|
}
|
||||||
String url = "https://video.yuchat.top/m3u8/" + id + "/index.m3u8";
|
String url = "https://video2.yuchat.top/m3u8/" + id + "/index.m3u8";
|
||||||
if (httpRequestComponent.checkUrl(url)) {
|
if (httpRequestComponent.checkUrl(url)) {
|
||||||
madouVideoInfo.setM3u8Url(url);
|
madouVideoInfo.setM3u8Url(url);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user