浏览代码

修改生成视频数量

zhangyong 1 年之前
父节点
当前提交
dc3cd329f0
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 2 2
      main.py
  2. 2 2
      video_stitching/video_stitching.py

+ 2 - 2
main.py

@@ -15,10 +15,10 @@ def job_douyin_data():
     douyinAuthor.get_token()
 
 # 设置上午10点运行任务
-schedule.every().day.at("12:00").do(job_douyin_data)
+schedule.every().day.at("14:00").do(job_douyin_data)
 
 # 设置下午4点运行任务
-schedule.every().day.at("04:00").do(job_video_stitching)
+schedule.every().day.at("10:08").do(job_video_stitching)
 
 while True:
     schedule.run_pending()

+ 2 - 2
video_stitching/video_stitching.py

@@ -321,12 +321,12 @@ class VideoStitching():
                         time.sleep(120)
                         count += 1
                         Common.logger().info(f"视频添加到对应用户成功")
-                        if count >= 2:
+                        if count >= 20:
                             break
             except Exception as e:
                 Common.logger().warning(f"新拼接视频发送oss失败:{e}\n")
                 continue
-            if count >= 2:
+            if count >= 20:
                 break
 
     @classmethod