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: