diff --git a/src/main/java/com/yutou/bilibili/BiliBili/Controllers/BiliVideoController.java b/src/main/java/com/yutou/bilibili/BiliBili/Controllers/BiliVideoController.java index 3243ccd..7955bb4 100644 --- a/src/main/java/com/yutou/bilibili/BiliBili/Controllers/BiliVideoController.java +++ b/src/main/java/com/yutou/bilibili/BiliBili/Controllers/BiliVideoController.java @@ -58,6 +58,9 @@ public class BiliVideoController { List 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());