From 7200f28ccaaede177ef16b5b76ebf9070cd60529 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Wed, 1 Jan 2020 13:38:26 +0800 Subject: [PATCH] =?UTF-8?q?API=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Common.py | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/Common.py b/Common.py index 99e91a4..286c5a7 100644 --- a/Common.py +++ b/Common.py @@ -314,19 +314,18 @@ class downloader(XiGuaLiveApi): def updRoomInfo(self, force=False): doClean() - super(downloader, self).updRoomInfo(force) - - def _updateUserOnly(self): - global broadcaster, isBroadcasting, updateTime - super(downloader, self)._updateUserOnly() - updateTime = datetime.strftime(datetime.now(), dt_format) - broadcaster = self.roomLiver - isBroadcasting = self.isLive - if self.isLive: - self.updPlayList() - else: - resetDelay() - self.playlist = False + _result = super(downloader, self).updRoomInfo(force) + if _result: + global broadcaster, isBroadcasting, updateTime + updateTime = datetime.strftime(datetime.now(), dt_format) + broadcaster = self.broadcaster + isBroadcasting = self.isLive + if self.isLive: + self.updPlayList() + else: + resetDelay() + self.playlist = False + return _result def updPlayList(self): global streamUrl