Explorar el Código

取消口播视频生成

zhangyong hace 11 meses
padre
commit
17d9499a6c
Se han modificado 1 ficheros con 10 adiciones y 10 borrados
  1. 10 10
      main.py

+ 10 - 10
main.py

@@ -15,7 +15,7 @@ flag = True
 def job_video_stitching():
     global flag
     dy_yinmei_count = sql.get_dy_yinmei_account_id()
-    koubo_count = sql.get_koubo_account_id()
+    # koubo_count = sql.get_koubo_account_id()
     # jieri_count = sql.get_jieri_account_id()
     # chunjie_zizhi_count = sql.get_chunjie_zizhi_account_id()
     ks_yinmei_count = sql.get_ks_yinmei_account_id()
@@ -42,11 +42,11 @@ def job_video_stitching():
     #     video_type = "口播--美文类"
     #     channel_type = "jieri"
     #     VideoStitching.video_stitching(video_type, koubo_count, channel_type)
-    elif int(koubo_count) < 10:
-        Common.logger("video").info("开始执行-口播")
-        video_type = "口播--美文类"
-        channel_type = "koubo"
-        VideoStitching.video_stitching(video_type, koubo_count, channel_type)
+    # elif int(koubo_count) < 10:
+    #     Common.logger("video").info("开始执行-口播")
+    #     video_type = "口播--美文类"
+    #     channel_type = "koubo"
+    #     VideoStitching.video_stitching(video_type, koubo_count, channel_type)
     # elif int(pjdouyin_account_id) < 5:
     #     Common.logger("video").info("开始执行-抖音拼接")
     #     video_type = "抖音-拼接类"
@@ -57,7 +57,7 @@ def job_video_stitching():
     #     video_type = "快手-拼接类"
     #     channel_type = "kspinjie"
     #     VideoStitching.video_stitching_pinjie(video_type, ksdouyin_account_id, channel_type)
-    count = int(dy_yinmei_count + koubo_count + ks_yinmei_count)
+    count = int(dy_yinmei_count + ks_yinmei_count)
     Common.logger("video").info(f"视频生成条数为:{count}")
     if count == 30:
         if flag:
@@ -69,14 +69,14 @@ def job_video_stitching():
 def job_feishu_bot():
     # jieri_count = sql.get_jieri_account_id()
     dy_yinmei_count = sql.get_dy_yinmei_account_id()
-    koubo_count = sql.get_koubo_account_id()
+    # koubo_count = sql.get_koubo_account_id()
     ks_yinmei_count = sql.get_ks_yinmei_account_id()
     # chunjie_zizhi_count = sql.get_chunjie_zizhi_account_id()
     pjdouyin_account_id = sql.get_pjdouyin_account_id()
     ksdouyin_account_id = sql.get_ksdouyin_account_id()
-    count = int(dy_yinmei_count + koubo_count + ks_yinmei_count)
+    count = int(dy_yinmei_count + ks_yinmei_count)
     if count < 30:
-        Feishu.bot('recommend', '拼接视频', f'视频生成异常,不符合预期,请检查\n目前生成数量如下:\n抖音-拼接类:{dy_yinmei_count}条 \n快手-拼接类:{ks_yinmei_count}条\n口播-拼接类:{koubo_count}条')
+        Feishu.bot('recommend', '拼接视频', f'视频生成异常,不符合预期,请检查\n目前生成数量如下:\n抖音-拼接类:{dy_yinmei_count}条 \n快手-拼接类:{ks_yinmei_count}条')
 
 
 # 每15分钟执行一次