更新等待时间

This commit is contained in:
Jerry Yan 2019-12-23 20:48:34 +08:00
parent 96c68dc608
commit de8cda6846

2
api.py
View File

@ -358,6 +358,7 @@ if __name__ == "__main__":
if api.isLive: if api.isLive:
try: try:
api.getDanmaku() api.getDanmaku()
time.sleep(1)
except requests.exceptions.BaseHTTPError: except requests.exceptions.BaseHTTPError:
print("网络错误,请确认网络") print("网络错误,请确认网络")
time.sleep(5) time.sleep(5)
@ -365,4 +366,5 @@ if __name__ == "__main__":
print(e) print(e)
else: else:
print("主播未开播等待2分钟后重试") print("主播未开播等待2分钟后重试")
time.sleep(60)
api.updRoomInfo() api.updRoomInfo()