diff --git a/src/main/java/com/yutou/bilibili/BiliBili/Live.java b/src/main/java/com/yutou/bilibili/BiliBili/Live.java index 3692643..4ddc7c9 100644 --- a/src/main/java/com/yutou/bilibili/BiliBili/Live.java +++ b/src/main/java/com/yutou/bilibili/BiliBili/Live.java @@ -256,7 +256,6 @@ public class Live implements ApplicationContextAware { */ public void decompress(byte[] data) { try { - byte[] bytes = new byte[data.length - 16]; System.arraycopy(data, 16, bytes, 0, data.length - 16); @@ -275,6 +274,7 @@ public class Live implements ApplicationContextAware { info.setPopular(popular); } } + checkLive(); } catch (Exception e) { e.printStackTrace(); com.yutou.bilibili.Tools.Log.i("----------ERROR----------"); @@ -290,6 +290,11 @@ public class Live implements ApplicationContextAware { if (isLive && upData.getSavelive() == 1) { SaveLive.getInstance().addLive(this); } + if(!isLive&&upData.getSavelive()==1){ + if(SaveLive.getInstance().checkLive(roomId)){ + SaveLive.getInstance().stop(roomId); + } + } }