API更新
This commit is contained in:
parent
ea7620bced
commit
7200f28cca
25
Common.py
25
Common.py
@ -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
|
updateTime = datetime.strftime(datetime.now(), dt_format)
|
||||||
super(downloader, self)._updateUserOnly()
|
broadcaster = self.broadcaster
|
||||||
updateTime = datetime.strftime(datetime.now(), dt_format)
|
isBroadcasting = self.isLive
|
||||||
broadcaster = self.roomLiver
|
if self.isLive:
|
||||||
isBroadcasting = self.isLive
|
self.updPlayList()
|
||||||
if self.isLive:
|
else:
|
||||||
self.updPlayList()
|
resetDelay()
|
||||||
else:
|
self.playlist = False
|
||||||
resetDelay()
|
return _result
|
||||||
self.playlist = False
|
|
||||||
|
|
||||||
def updPlayList(self):
|
def updPlayList(self):
|
||||||
global streamUrl
|
global streamUrl
|
||||||
|
Reference in New Issue
Block a user