|
@@ -8,6 +8,7 @@ import time
|
|
|
from datetime import datetime
|
|
|
|
|
|
from common.redis import get_data, get_first_value_with_prefix, increment_key
|
|
|
+from common.tag_video import Tag
|
|
|
from common.tts_help import TTS
|
|
|
from common import Material, Feishu, Common, Oss, AliyunLogger
|
|
|
from common.ffmpeg import FFmpeg
|
|
@@ -223,7 +224,17 @@ class VideoProcessor:
|
|
|
first_category = task["first_category"]
|
|
|
secondary_category = task["secondary_category"]
|
|
|
keyword_principal = task["keyword_name"]
|
|
|
- log_data = f"user:{url},,video_id:{v_id},,video_url:{video_url},,ai_title:{new_title},,voice:{voice},,first_category:{first_category},,secondary_category:{secondary_category},,keyword_principal:{keyword_principal}"
|
|
|
+ tag_first = f"一级品类_{first_category}"
|
|
|
+ tag_keyword = f"关键词_{url}"
|
|
|
+ if channel_id == "抖音搜索":
|
|
|
+ tag_channel = "来源_抖音关键词"
|
|
|
+ elif channel_id == "快手搜索":
|
|
|
+ tag_channel = "来源_快手关键词"
|
|
|
+ tag = f"{tag_first},{tag_keyword},{tag_channel}"
|
|
|
+ tag_status = Tag.video_tag(code, tag)
|
|
|
+ if tag_status == 0:
|
|
|
+ Common.logger(mark).info(f"{name}的{task_mark}下的ID{url}下的票圈视频{code},写入标签成功")
|
|
|
+ log_data = f"user:{url},,video_id:{v_id},,video_url:{video_url},,ai_title:{new_title},,voice:{voice},,first_category:{first_category},,secondary_category:{secondary_category},,keyword_principal:{keyword_principal},,tag:{tag}"
|
|
|
values = [
|
|
|
[
|
|
|
name,
|