From 3f785b577f8cd864aa52430a661c74d435c7d434 Mon Sep 17 00:00:00 2001 From: Yutousama <583819556@qq.com> Date: Mon, 30 May 2022 20:46:26 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E8=8E=B7=E5=8F=96=E5=BD=95?= =?UTF-8?q?=E6=92=AD=E5=88=97=E8=A1=A8=E6=97=B6=E8=BF=87=E6=BB=A4=E9=9D=9E?= =?UTF-8?q?mp4=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bilibili/BiliBili/Controllers/BiliVideoController.java | 3 +++ 1 file changed, 3 insertions(+) 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());