From 6b0433138aa4c6fc6283f5d08c56cfd2cffc7c70 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Tue, 7 Jan 2020 09:13:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=95=E7=A8=BF=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Common.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Common.py b/Common.py index 37a42da..164549b 100644 --- a/Common.py +++ b/Common.py @@ -308,15 +308,17 @@ class downloader(XiGuaLiveApi): playlist = None def updRoomInfo(self, force=False): + global broadcaster, isBroadcasting, updateTime + _prev_status = self.isLive doClean() _result = super(downloader, self).updRoomInfo(force) - global broadcaster, isBroadcasting, updateTime updateTime = datetime.strftime(self._updRoomAt, dt_format) + if _prev_status != self.isLive: + resetDelay() if _result: broadcaster = self.broadcaster isBroadcasting = self.isLive if self.isLive: - resetDelay() self.updPlayList() else: self.playlist = False