From 6cbaa384dc652d02b1f0290b282cdac9de8c1112 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Thu, 21 Mar 2019 14:16:32 +0800 Subject: [PATCH] .... --- liveDownloader.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/liveDownloader.py b/liveDownloader.py index 693d8ee..3eb51de 100644 --- a/liveDownloader.py +++ b/liveDownloader.py @@ -157,15 +157,6 @@ if __name__ == "__main__": _count = 0 while True: if api.isLive: - if _count % 6 == 0: - try: - api.updRoomInfo() - _count = 0 - 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(): @@ -177,6 +168,15 @@ if __name__ == "__main__": ut = threading.Thread(target=upload, args=(d,)) ut.setDaemon(True) ut.start() + if _count % 6 == 0: + try: + api.updRoomInfo() + _count = 0 + except: + time.sleep(10) + _count += 1 + continue + _count += 1 time.sleep(20) else: if d is not None: