zhangyong 8 ヶ月 前
コミット
f698c23a07

+ 1 - 0
common/tts_help.py

@@ -47,6 +47,7 @@ class TTS:
                         return None
             except Exception:
                 if attempt == max_retries - 1:
+                    Feishu.bot("zhangyong", '机器自动改造消息通知', f'硅语错误请排查', '张勇')
                     return None
         Feishu.bot("zhangyong", '机器自动改造消息通知', f'硅语cookie过期,请及时更换', '张勇')
 

+ 2 - 2
data_channel/ks_ls.py

@@ -94,7 +94,7 @@ class KSLS:
 
 
 if __name__ == '__main__':
-    Feishu.finish_bot('测试',
-                      "https://open.feishu.cn/open-apis/bot/v2/hook/575ca6a1-84b4-4a2f-983b-1d178e7b16eb", "【 Token 使用提示 】")
+    # Feishu.finish_bot('测试',
+    #                   "https://open.feishu.cn/open-apis/bot/v2/hook/575ca6a1-84b4-4a2f-983b-1d178e7b16eb", "【 Token 使用提示 】")
     # DYLS.get_video("7314923922602954022")
     KSLS.get_ksls_list("1","3xzicxg2nandemc",1,"1")

+ 1 - 1
data_channel/shipinhao.py

@@ -86,7 +86,7 @@ class SPH:
                     last_buffer = res_json.get('last_buffer')
                     for obj in res_json["UpMasterHomePage"]:
                         objectId = obj['objectId']
-                        status = sqlCollect.is_used(task_mark ,objectId, mark, "视频号")
+                        status = sqlCollect.is_used(task_mark, objectId, mark, "视频号")
                         if status:
                             objectNonceId = obj['objectNonceId']
                             url = "http://61.48.133.26:30001/GetFinderDownloadAddress"

+ 4 - 3
video_rewriting/video_processor.py

@@ -110,9 +110,10 @@ class VideoProcessor:
                 video_url = video["video_url"]
                 old_title = video['old_title']
                 rule = video['rule']
-                redis_video = get_redis_video_data(v_id)
-                if redis_video:
-                    continue
+                if channel_id == "单点视频":
+                    redis_video = get_redis_video_data(v_id)
+                    if redis_video:
+                        continue
                 if not old_title:
                     old_title = '这个视频,分享给我的老友,祝愿您能幸福安康'
                     text = (