API更新

This commit is contained in:
Jerry Yan 2020-01-01 13:38:26 +08:00
parent ea7620bced
commit 7200f28cca

View File

@ -314,19 +314,18 @@ class downloader(XiGuaLiveApi):
def updRoomInfo(self, force=False): def updRoomInfo(self, force=False):
doClean() doClean()
super(downloader, self).updRoomInfo(force) _result = super(downloader, self).updRoomInfo(force)
if _result:
def _updateUserOnly(self):
global broadcaster, isBroadcasting, updateTime global broadcaster, isBroadcasting, updateTime
super(downloader, self)._updateUserOnly()
updateTime = datetime.strftime(datetime.now(), dt_format) updateTime = datetime.strftime(datetime.now(), dt_format)
broadcaster = self.roomLiver broadcaster = self.broadcaster
isBroadcasting = self.isLive isBroadcasting = self.isLive
if self.isLive: if self.isLive:
self.updPlayList() self.updPlayList()
else: else:
resetDelay() resetDelay()
self.playlist = False self.playlist = False
return _result
def updPlayList(self): def updPlayList(self):
global streamUrl global streamUrl