|
@@ -21,12 +21,12 @@ def job_video_stitching():
|
|
|
koubo_count = sql.get_koubo_account_id()
|
|
|
jieri_count = sql.get_jieri_account_id()
|
|
|
ks_yinmei_count = sql.get_ks_yinmei_account_id()
|
|
|
- if int(jieri_count) < 20:
|
|
|
- Common.logger("video").info("开始执行-口播-小年")
|
|
|
- video_type = "口播--美文类"
|
|
|
- channel_type = "xiaonian"
|
|
|
- VideoStitching.video_stitching(video_type, koubo_count, channel_type)
|
|
|
- elif int(ks_yinmei_count) < 10:
|
|
|
+ # if int(jieri_count) < 20:
|
|
|
+ # Common.logger("video").info("开始执行-口播-小年")
|
|
|
+ # video_type = "口播--美文类"
|
|
|
+ # channel_type = "xiaonian"
|
|
|
+ # VideoStitching.video_stitching(video_type, koubo_count, channel_type)
|
|
|
+ if int(ks_yinmei_count) < 10:
|
|
|
Common.logger("video").info("开始执行-快手")
|
|
|
video_type = "音画美文"
|
|
|
channel_type = "kuaishou"
|
|
@@ -43,7 +43,7 @@ def job_video_stitching():
|
|
|
channel_type = "koubo"
|
|
|
VideoStitching.video_stitching(video_type, koubo_count, channel_type)
|
|
|
count = int(dy_yinmei_count + koubo_count + ks_yinmei_count)
|
|
|
- if count == 50:
|
|
|
+ if count == 30:
|
|
|
if flag:
|
|
|
Feishu.bot('recommend', '拼接视频', '自制视频拼接完成啦,共计30条~')
|
|
|
flag = False
|
|
@@ -51,13 +51,13 @@ def job_video_stitching():
|
|
|
flag = True
|
|
|
|
|
|
def job_feishu_bot():
|
|
|
- jieri_count = sql.get_jieri_account_id()
|
|
|
+ # jieri_count = sql.get_jieri_account_id()
|
|
|
dy_yinmei_count = sql.get_dy_yinmei_account_id()
|
|
|
koubo_count = sql.get_koubo_account_id()
|
|
|
ks_yinmei_count = sql.get_ks_yinmei_account_id()
|
|
|
count = int(dy_yinmei_count + koubo_count + ks_yinmei_count)
|
|
|
- if count < 50:
|
|
|
- Feishu.bot('recommend', '拼接视频', f'视频生成异常,不符合预期,请检查\n目前生成数量如下:\n小年类视频拼接:{jieri_count}条\n抖音视频拼接:{dy_yinmei_count}条 \n快手视频拼接:{ks_yinmei_count}条\n口播视频拼接:{koubo_count}条')
|
|
|
+ if count < 30:
|
|
|
+ Feishu.bot('recommend', '拼接视频', f'视频生成异常,不符合预期,请检查\n目前生成数量如下:\n抖音视频拼接:{dy_yinmei_count}条 \n快手视频拼接:{ks_yinmei_count}条\n口播视频拼接:{koubo_count}条')
|
|
|
|
|
|
def job_douyin_data():
|
|
|
douyinAuthor.get_videoList()
|