Bläddra i källkod

修改默认标题

zhangyong 8 månader sedan
förälder
incheckning
f6c5f293e8
2 ändrade filer med 6 tillägg och 6 borttagningar
  1. 2 2
      common/gpt4o_help.py
  2. 4 4
      video_rewriting/video_processor.py

+ 2 - 2
common/gpt4o_help.py

@@ -107,10 +107,10 @@ class GPT4o():
                 match = re.search(r'"[^"]+": "([^"]+)"', str(response))
                 if match:
                     if match == 'None':
-                        return "🔻分享给大家一个视频!值得细品❗"
+                        return "这个视频,分享给我的老友,祝愿您能幸福安康"
                     title = match.group(1)
                     if title in '原标题无法按照规则生成新标题':
-                        return "🔻分享给大家一个视频!值得细品❗"
+                        return "这个视频,分享给我的老友,祝愿您能幸福安康"
                     return title
                 else:
                     content = response['data']['choices'][0]['message']['content']

+ 4 - 4
video_rewriting/video_processor.py

@@ -111,7 +111,7 @@ class VideoProcessor:
                 rule = video['rule']
 
                 if not old_title:
-                    old_title = '⭕分享给大家一个视频!值得细品!'
+                    old_title = '这个视频,分享给我的老友,祝愿您能幸福安康'
                     text = (
                         f"**通知类型**: 标题为空,使用兜底标题生成片尾\n"
                         f"**负责人**: {name}\n"
@@ -293,13 +293,13 @@ class VideoProcessor:
                 .replace("&NBSP", "").replace(".", "。").replace(" ", "") \
                 .replace("'", "").replace("#", "").replace("Merge", "")
         else:
-            return '⭕分享给大家一个视频!值得细品!'
+            return '这个视频,分享给我的老友,祝愿您能幸福安康'
         if title == "原标题":
             if not new_title:
-                new_title = '⭕分享给大家一个视频!值得细品!'
+                new_title = '这个视频,分享给我的老友,祝愿您能幸福安康'
         elif title == "AI标题":
             if not new_title:
-                new_title = '⭕分享给大家一个视频!值得细品!'
+                new_title = '这个视频,分享给我的老友,祝愿您能幸福安康'
             else:
                 new_title = GPT4o.get_ai_title(new_title)
         else: