zhangyong vor 5 Monaten
Ursprung
Commit
d4d85095ae
2 geänderte Dateien mit 16 neuen und 0 gelöschten Zeilen
  1. 11 0
      common/sql_help.py
  2. 5 0
      video_rewriting/video_processor.py

+ 11 - 0
common/sql_help.py

@@ -206,6 +206,17 @@ class sqlCollect():
         )
         return res
 
+    @classmethod
+    def update_feed_vid_2(cls, vid):
+        """
+        视频号单点修改状态为1
+        """
+        sql = f"""UPDATE automator_feed_video set has_used = 2 where video_id = '{vid}'"""
+        res = AigcMysqlHelper.update_values(
+            sql=sql
+        )
+        return res
+
     @classmethod
     def update_shp_dd_vid(cls, vid):
         """

+ 5 - 0
video_rewriting/video_processor.py

@@ -216,6 +216,11 @@ class VideoProcessor:
                                     Feishu.finish_bot(text,
                                                       "https://open.feishu.cn/open-apis/bot/v2/hook/493b3d4c-5fae-4a9d-980b-1dd86636524e",
                                                       "【 视频下载失败,跳过该视频 】")
+                                if name == "快手推荐流" or name == "视频号推荐流":
+                                    sqlCollect.update_feed_vid_2(v_id)
+                                    Feishu.finish_bot(text,
+                                                      "https://open.feishu.cn/open-apis/bot/v2/hook/493b3d4c-5fae-4a9d-980b-1dd86636524e",
+                                                      "【 视频下载失败,跳过该视频 】")
                                 continue
                         else:
                             if video_share and video_share != 'None':