wangkun 2 年之前
父节点
当前提交
41dcb2d640
共有 3 个文件被更改,包括 5 次插入5 次删除
  1. 2 2
      main/kanyikan_moment.py
  2. 1 1
      main/kanyikan_recommend_feeds.py
  3. 2 2
      main/kanyikan_recommend_play_sendtime.py

+ 2 - 2
main/kanyikan_moment.py

@@ -62,9 +62,9 @@ class Moment:
         :param d_share_cnt: 分享量
         :return: 满足规则,返回 True;反之,返回 False
         """
-        if int(float(d_duration)) >= 60:
+        if int(float(d_duration)) >= 40:
             if int(d_width) >= 0 or int(d_height) >= 0:
-                if int(d_play_cnt) >= 100000:
+                if int(d_play_cnt) >= 50000:
                     if int(d_like_cnt) >= 0:
                         if int(d_share_cnt) >= 0:
                             return True

+ 1 - 1
main/kanyikan_recommend_feeds.py

@@ -205,7 +205,7 @@ def get_recommend_feeds(log_type):
                         Common.logger(log_type).info("无效视频")
 
                     # 基础门槛,播放量>=20000
-                    elif int(video_play_cnt) < 20000:
+                    elif int(video_play_cnt) < 10000:
                         Common.logger(log_type).info("播放量{} < 20000", video_play_cnt)
                     elif int(video_send_date) < 1659283200:
                         Common.logger(log_type).info('发布时间{}<2022-08-01', video_send_date)

+ 2 - 2
main/kanyikan_recommend_play_sendtime.py

@@ -128,14 +128,14 @@ class RecommendPlaySendtime:
                         Feishu.dimension_range("recommend", "kanyikan", "SdCHOM", "ROWS", i + 1, i + 1)
                         return
                     # 不满足规则:发布时间 > 7 天 and 播放量 < 150000
-                    elif int(time.time()) - int(v_send_date) > 604800 and int(v_play_cnt_sendtime) < 150000:
+                    elif int(time.time()) - int(v_send_date) > 604800 and int(v_play_cnt_sendtime) < 80000:
                         # 从云文档删除该视频信息:https://w42nne6hzg.feishu.cn/sheets/shtcngRPoDYAi24x52j2nDuHMih?sheet=SdCHOM
                         Common.logger("recommend").info("播放量:{} < 150000", int(v_play_cnt_sendtime))
                         # 删除行或列,可选 ROWS、COLUMNS
                         Feishu.dimension_range("recommend", "kanyikan", "SdCHOM", "ROWS", i + 1, i + 1)
                         return
                     # 不满足规则:发布时间 <= 7 天 and 播放量 < 20000
-                    elif int(time.time()) - int(v_send_date) <= 604800 and int(v_play_cnt_sendtime) < 20000:
+                    elif int(time.time()) - int(v_send_date) <= 604800 and int(v_play_cnt_sendtime) < 10000:
                         # 从云文档删除该视频信息:https://w42nne6hzg.feishu.cn/sheets/shtcngRPoDYAi24x52j2nDuHMih?sheet=SdCHOM
                         Common.logger("recommend").info("视频7天播放量:{} < 20000", int(v_play_cnt_sendtime))
                         # 删除行或列,可选 ROWS、COLUMNS