|
@@ -14,6 +14,7 @@ from common.download_video import DownLoad
|
|
from common.ffmpeg import FFmpeg
|
|
from common.ffmpeg import FFmpeg
|
|
from common.gpt4o_help import GPT4o
|
|
from common.gpt4o_help import GPT4o
|
|
from common.redis import in_carry_video_data
|
|
from common.redis import in_carry_video_data
|
|
|
|
+from common.sql_help import sqlCollect
|
|
from common.tag_video import Tag
|
|
from common.tag_video import Tag
|
|
from common.tts_help import TTS
|
|
from common.tts_help import TTS
|
|
from data_channel.piaoquan import PQ
|
|
from data_channel.piaoquan import PQ
|
|
@@ -127,6 +128,7 @@ class CarryViode:
|
|
"https://open.feishu.cn/open-apis/bot/v2/hook/65bc5463-dee9-46d0-bc2d-ec6c49a8f3cd",
|
|
"https://open.feishu.cn/open-apis/bot/v2/hook/65bc5463-dee9-46d0-bc2d-ec6c49a8f3cd",
|
|
"【 搬运&改造效率工具失败通知 】")
|
|
"【 搬运&改造效率工具失败通知 】")
|
|
continue
|
|
continue
|
|
|
|
+
|
|
pq_list.append(code)
|
|
pq_list.append(code)
|
|
logger.info(f"[+] {REDIS_NAME}的{data}写入票圈成功,返回视频id{code}")
|
|
logger.info(f"[+] {REDIS_NAME}的{data}写入票圈成功,返回视频id{code}")
|
|
tag_status = Tag.video_tag(code, str(tags))
|
|
tag_status = Tag.video_tag(code, str(tags))
|
|
@@ -135,6 +137,11 @@ class CarryViode:
|
|
try:
|
|
try:
|
|
current_time = datetime.now()
|
|
current_time = datetime.now()
|
|
formatted_time = current_time.strftime("%Y-%m-%d %H:%M:%S")
|
|
formatted_time = current_time.strftime("%Y-%m-%d %H:%M:%S")
|
|
|
|
+ sqlCollect.insert_machine_making_data(data["name"], "搬运工具", tag_transport_channel,
|
|
|
|
+ data["video_url"], data["video_url"], data["pq_ids"],
|
|
|
|
+ data["title_category"],
|
|
|
|
+ code,
|
|
|
|
+ formatted_time, data["title_category"], oss_object_key)
|
|
pq_url = f'https://admin.piaoquantv.com/cms/post-detail/{code}/detail' # 站内视频链接
|
|
pq_url = f'https://admin.piaoquantv.com/cms/post-detail/{code}/detail' # 站内视频链接
|
|
|
|
|
|
values = [
|
|
values = [
|