diff --git a/src/main/java/com/yutou/bilibili/Tools/ApplicationInit.java b/src/main/java/com/yutou/bilibili/Tools/ApplicationInit.java index e7416f4..61ec705 100644 --- a/src/main/java/com/yutou/bilibili/Tools/ApplicationInit.java +++ b/src/main/java/com/yutou/bilibili/Tools/ApplicationInit.java @@ -97,7 +97,7 @@ public class ApplicationInit implements ApplicationRunner { LiveUtils.reloadLiveState(list); for (BilibiliUpInfo info : list) { if (info.getOfflinelistening() == 1) { - if (info.getEnable() == 1 && LiveUtils.isLivePlayer(info.getRoomid())) { + if (info.getEnable() == 1 ) { Live live = LiveUtils.liveContains(info); if (live == null) { live = new Live(); diff --git a/src/main/java/com/yutou/bilibili/Tools/DanmuTools.java b/src/main/java/com/yutou/bilibili/Tools/DanmuTools.java index 75efcef..fd1cee6 100644 --- a/src/main/java/com/yutou/bilibili/Tools/DanmuTools.java +++ b/src/main/java/com/yutou/bilibili/Tools/DanmuTools.java @@ -59,8 +59,8 @@ public class DanmuTools { } public static void main(String[] args) { - File live = new File("Z:\\BiliBiliLive\\2021年7月10日BML-Sp\\[2021-07-10 165521]22408644.mp4"); - File danmu = new File("Z:\\BiliBiliLive\\2021年7月10日BML-Sp\\[2021-07-10]22408644.db"); + File live = new File("Z:\\BiliBiliLive\\live\\2022-04-24\\[2022-04-24 213155]1022.mp4"); + File danmu = new File("Z:\\BiliBiliLive\\live\\2022-04-24\\[2022-04-24]1022.db"); danmuToAss(live, danmu,true, "老板大气!点点红包抽礼物!"); } }