zhangyong 7 months ago
parent
commit
48ba622442
1 changed files with 2 additions and 1 deletions
  1. 2 1
      data_channel/kuaishou.py

+ 2 - 1
data_channel/kuaishou.py

@@ -116,7 +116,6 @@ class KS:
                     video_id = feeds[i].get("photo", {}).get("id", "")
                     status = sqlCollect.is_used(task_mark, video_id, mark, channel_id)
 
-                    share_count = cls.get_share_count(video_id)
                     old_title = feeds[i].get("photo", {}).get("caption")
                     cover_url = feeds[i].get('photo', {}).get('coverUrl', "")
                     video_url = feeds[i].get('photo', {}).get('photoUrl', "")
@@ -132,6 +131,8 @@ class KS:
                     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)
                     if float(video_percent) < special:
                         AliyunLogger.logging(channel_id, name, url_id, video_id, "不符合规则:分享/浏览小于0.001", "2003", log_data)