fix:获取录播列表时过滤非mp4文件
This commit is contained in:
parent
ccd742a078
commit
3f785b577f
@ -58,6 +58,9 @@ public class BiliVideoController {
|
||||
List<File> list = AppTools.scanFilePath(file.getAbsolutePath()+File.separator+"live");
|
||||
JSONArray array = new JSONArray();
|
||||
for (File f : list) {
|
||||
if(!f.getName().endsWith(".mp4")){
|
||||
continue;
|
||||
}
|
||||
JSONObject item = new JSONObject();
|
||||
String _time = f.getName().split(" ")[0].substring(1);
|
||||
File mpeg = new File("ffmpeg_out" + File.separator + _time + File.separator + f.getName());
|
||||
|
Loading…
Reference in New Issue
Block a user