From dd08229ff126cfa80c4615f54f0929d3138247b7 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Thu, 21 Mar 2019 13:00:57 +0800 Subject: [PATCH] Fix --- liveDownloader.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/liveDownloader.py b/liveDownloader.py index 6c5aa68..adc4a30 100644 --- a/liveDownloader.py +++ b/liveDownloader.py @@ -157,6 +157,14 @@ if __name__ == "__main__": _count = 0 while True: if api.isLive: + if _count % 6 == 0: + try: + api.updRoomInfo() + except: + time.sleep(10) + _count += 1 + continue + _count += 1 if d is None: d = datetime.strftime(datetime.now(), "%Y_%m_%d") if not t.is_alive(): @@ -169,13 +177,6 @@ if __name__ == "__main__": ut.setDaemon(True) ut.start() time.sleep(20) - if _count % 6 == 0: - try: - api.updRoomInfo() - except: - time.sleep(10) - continue - _count += 1 else: if d is not None: d = None