Browse Source

增加随机等待时间

zhangyong 11 months ago
parent
commit
1a9444894f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      video_agc/agc_video_method.py

+ 2 - 0
video_agc/agc_video_method.py

@@ -741,6 +741,8 @@ class AgcVidoe():
                         for file_path in download_video:
                             os.remove(file_path)
                             print(f"已删除文件:{file_path}")
+                        random_wait_time = random.randint(10, 80)
+                        time.sleep(random_wait_time)
                 else:
                     Common.logger("bk_video").info(f"{mark}的视频下载视频")
                     continue