zhangyong 4 months ago
parent
commit
f89e47f912
2 changed files with 5 additions and 4 deletions
  1. 2 1
      common/feishu_utils.py
  2. 3 3
      data_channel/kuaishou.py

+ 2 - 1
common/feishu_utils.py

@@ -302,7 +302,8 @@ class Feishu:
 
             return open_id
         except Exception as e:
-            logger.error(f"get_userid异常:{e}\n")
+            pass
+            # logger.error(f"get_userid异常:{e}\n")
 
     # 飞书机器人
     @classmethod

+ 3 - 3
data_channel/kuaishou.py

@@ -128,9 +128,9 @@ class KS:
                     # log_data = f"user:{url_id},,video_id:{video_id},,video_url:{video_url},,original_title:{old_title},,view_count:{view_count},,duration:{duration}"
 
                     AliyunLogger.logging(channel_id, name, url_id, video_id, "扫描到一条视频", "2001", log_data)
-                    if status:
-                        AliyunLogger.logging(channel_id, name, url_id, video_id, "该视频已改造过", "2002", log_data)
-                        continue
+                    # if status:
+                    #     AliyunLogger.logging(channel_id, name, url_id, video_id, "该视频已改造过", "2002", log_data)
+                    #     continue
                     share_count = cls.get_share_count(video_id)
 
                     special = float(0.001)