zhangyong 6 月之前
父節點
當前提交
fc96a27c74
共有 1 個文件被更改,包括 6 次插入6 次删除
  1. 6 6
      video_cover_method/cover_method.py

+ 6 - 6
video_cover_method/cover_method.py

@@ -39,7 +39,7 @@ class CoverMethod:
             )
             Feishu.finish_bot( text,
                                "https://open.feishu.cn/open-apis/bot/v2/hook/63745308-c53e-4030-90b9-77383b057252",
-                               "【 封面修改通知 】" )
+                               "【 封面添加通知 】" )
             return
         cover_list = PQ.get_pq_all_cover(video_id)  # 获取所有封面
         if cover_list:
@@ -96,7 +96,7 @@ class CoverMethod:
                 )
                 Feishu.finish_bot( text,
                                    "https://open.feishu.cn/open-apis/bot/v2/hook/63745308-c53e-4030-90b9-77383b057252",
-                                   "【 封面修改通知 】" )
+                                   "【 封面添加通知 】" )
                 return
             if int(old_cover_sum) != 0 and int(highest_cover_sum) <= int(old_cover_sum):
                 text = (
@@ -109,7 +109,7 @@ class CoverMethod:
                 )
                 Feishu.finish_bot( text,
                                    "https://open.feishu.cn/open-apis/bot/v2/hook/63745308-c53e-4030-90b9-77383b057252",
-                                   "【 封面修改通知 】" )
+                                   "【 封面添加通知 】" )
                 return
             code = PQ.add_pq_cover(video_id, highest_cover_url)
             # code = PQ.update_pq_video_cover(video_id, highest_cover_url, cover_id)  # 修改封面
@@ -126,7 +126,7 @@ class CoverMethod:
                 )
                 Feishu.finish_bot( text,
                                    "https://open.feishu.cn/open-apis/bot/v2/hook/63745308-c53e-4030-90b9-77383b057252",
-                                   "【 封面修改通知 】" )
+                                   "【 封面添加通知 】" )
                 sqlCollect.insert_video_cover_method(video_id, cover_id, old_cover_url, highest_cover_url)
                 return
             else:
@@ -140,7 +140,7 @@ class CoverMethod:
                 )
                 Feishu.finish_bot( text,
                                    "https://open.feishu.cn/open-apis/bot/v2/hook/63745308-c53e-4030-90b9-77383b057252",
-                                   "【 封面修改通知 】" )
+                                   "【 封面添加通知 】" )
                 AliyunLogger.logging( video_id, "添加视频封面失败", "3003", cover_all_data, old_cover_url, highest_cover_url)
                 insert_pq_data( [video_id] )
         else:
@@ -151,7 +151,7 @@ class CoverMethod:
             )
             Feishu.finish_bot( text,
                                "https://open.feishu.cn/open-apis/bot/v2/hook/63745308-c53e-4030-90b9-77383b057252",
-                               "【 封面修改通知 】" )
+                               "【 封面添加通知 】" )
             print(f"{video_id}没有获取到封面")
             return