|
@@ -176,6 +176,16 @@ class ConsumptionRecommend(object):
|
|
|
"【 搬运&改造效率工具失败通知 】")
|
|
|
return
|
|
|
logger.info(f"[处理] {url}视频下载成功")
|
|
|
+ if FFmpeg.get_video_duration(video_path) > 900:
|
|
|
+ text = (
|
|
|
+ f"**负责人**: {data['name']}\n"
|
|
|
+ f"**内容**: {data}\n"
|
|
|
+ f"**失败信息**: {url},视频时长大于 15min不做处理\n"
|
|
|
+ )
|
|
|
+ Feishu.finish_bot(text,
|
|
|
+ "https://open.feishu.cn/open-apis/bot/v2/hook/65bc5463-dee9-46d0-bc2d-ec6c49a8f3cd",
|
|
|
+ f"【 搬运&改造效率工具失败通知 】")
|
|
|
+ return
|
|
|
if data["title_category"] == "AI标题" or str(data["trailer_share"]) == "AI标题":
|
|
|
title = GPT4oMini.get_ai_mini_title(
|
|
|
original_title if data["title_category"] == "AI标题" else data["title_category"])
|