From de8cda6846d479c0bc60b7ceb8fdf7820a5d8b99 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Mon, 23 Dec 2019 20:48:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=AD=89=E5=BE=85=E6=97=B6?= =?UTF-8?q?=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api.py b/api.py index c08b1d1..091ccb9 100644 --- a/api.py +++ b/api.py @@ -358,6 +358,7 @@ if __name__ == "__main__": if api.isLive: try: api.getDanmaku() + time.sleep(1) except requests.exceptions.BaseHTTPError: print("网络错误,请确认网络") time.sleep(5) @@ -365,4 +366,5 @@ if __name__ == "__main__": print(e) else: print("主播未开播,等待2分钟后重试") + time.sleep(60) api.updRoomInfo()