|
@@ -12,6 +12,7 @@ import requests
|
|
|
from application.common import Feishu
|
|
|
from application.common.feishu import FsData
|
|
|
from application.common.feishu.feishu_utils import FeishuUtils
|
|
|
+from application.common.ffmpeg.ffmpeg_utils import Ffmpeg
|
|
|
from application.common.gpt import GPT4oMini
|
|
|
|
|
|
sys.path.append(os.getcwd())
|
|
@@ -148,6 +149,12 @@ class TTJFFQRecommend(object):
|
|
|
trace_id=trace_id,
|
|
|
)
|
|
|
if pipeline.process_item():
|
|
|
+ video_url = video_obj["videoPath"]
|
|
|
+ ffmpeg = Ffmpeg()
|
|
|
+ new_video_url = ffmpeg.merge_m3u8(video_url)
|
|
|
+ if not new_video_url:
|
|
|
+ return
|
|
|
+ item.add_video_info("video_url", new_video_url)
|
|
|
title_list = title_rule.split(",")
|
|
|
title = video_obj["title"]
|
|
|
contains_keyword = any(keyword in title for keyword in title_list)
|