You've already forked XiguaLiveDanmakuHelper
stop downloading with update room
This commit is contained in:
2
api.py
2
api.py
@ -203,7 +203,7 @@ class XiGuaLiveApi:
|
||||
if self.roomID == 0:
|
||||
self.isLive = False
|
||||
return False
|
||||
if (self._updRoomAt + timedelta(minutes=2) > datetime.now()) and not force:
|
||||
if (self._updRoomAt + timedelta(minutes=3) > datetime.now()) and not force:
|
||||
return self.isLive
|
||||
_formatData = {"COMMON": COMMON_GET_PARAM, "TIMESTAMP": time.time() * 1000, "roomId": self.roomID}
|
||||
_url = ROOM_INFO_API.format_map(_formatData).format_map(_formatData)
|
||||
|
Reference in New Issue
Block a user