zhangyong 9 月之前
父节点
当前提交
699138f466
共有 1 个文件被更改,包括 14 次插入0 次删除
  1. 14 0
      video_rewriting/video_processor.py

+ 14 - 0
video_rewriting/video_processor.py

@@ -172,6 +172,20 @@ class VideoProcessor:
                         if new_video_path == None:
                         if new_video_path == None:
                             if name == "单点视频":
                             if name == "单点视频":
                                 sqlCollect.update_shp_dd_vid_4(v_id)
                                 sqlCollect.update_shp_dd_vid_4(v_id)
+                                from_user_name = video['from_user_name']  # 来源用户
+                                from_group_name = video['from_group_name']  # 来源群组
+                                source = video['source']  # 渠道
+                                text = (
+                                    f"**渠道**: {source}\n"
+                                    f"**来源用户**: {from_user_name}\n"
+                                    f"**来源群组**: {from_group_name}\n"
+                                    f"**原视频链接**: {video['video_url']}\n"
+                                    f"**原视频封面**: {video['cover']}\n"
+                                    f"**原视频标题**: {video['old_title']}\n"
+                                )
+                                Feishu.finish_bot(text,
+                                                  "https://open.feishu.cn/open-apis/bot/v2/hook/493b3d4c-5fae-4a9d-980b-1dd86636524e",
+                                                  "【 视频下载失败,跳过该视频 】")
                             continue
                             continue
                     else:
                     else:
                         if video_share and video_share != 'None':
                         if video_share and video_share != 'None':