....
This commit is contained in:
parent
c9c962f646
commit
6cbaa384dc
@ -157,15 +157,6 @@ if __name__ == "__main__":
|
|||||||
_count = 0
|
_count = 0
|
||||||
while True:
|
while True:
|
||||||
if api.isLive:
|
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:
|
if d is None:
|
||||||
d = datetime.strftime(datetime.now(), "%Y_%m_%d")
|
d = datetime.strftime(datetime.now(), "%Y_%m_%d")
|
||||||
if not t.is_alive():
|
if not t.is_alive():
|
||||||
@ -177,6 +168,15 @@ if __name__ == "__main__":
|
|||||||
ut = threading.Thread(target=upload, args=(d,))
|
ut = threading.Thread(target=upload, args=(d,))
|
||||||
ut.setDaemon(True)
|
ut.setDaemon(True)
|
||||||
ut.start()
|
ut.start()
|
||||||
|
if _count % 6 == 0:
|
||||||
|
try:
|
||||||
|
api.updRoomInfo()
|
||||||
|
_count = 0
|
||||||
|
except:
|
||||||
|
time.sleep(10)
|
||||||
|
_count += 1
|
||||||
|
continue
|
||||||
|
_count += 1
|
||||||
time.sleep(20)
|
time.sleep(20)
|
||||||
else:
|
else:
|
||||||
if d is not None:
|
if d is not None:
|
||||||
|
Reference in New Issue
Block a user