This commit is contained in:
Jerry Yan 2019-03-21 14:16:32 +08:00
parent c9c962f646
commit 6cbaa384dc

View File

@ -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: