wangkun 1 year ago
parent
commit
ff48c4d85b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      main/kanyikan_recommend.py

+ 2 - 2
main/kanyikan_recommend.py

@@ -39,8 +39,8 @@ class Kanyikanrecommend:
     def download_rule(cls, video_dict):
         if (int(video_dict["video_width"]) or int(video_dict["video_height"]) >= 720) \
             and int(video_dict["duration"]) >= 40\
-            and (int(int(int(time.time()) - video_dict["publish_time_stamp"]) / (3600*24)) >= 7 and int(video_dict["play_cnt"]) >= 5000)\
-            and ((int(int(int(time.time()) - video_dict["publish_time_stamp"]) / (3600*24)) < 7 and int(video_dict["play_cnt"]) >= 1000) or (int(video_dict["publish_time_stamp"]) >= int(time.mktime(time.strptime("2021-06-01 00:00:00", "%Y-%m-%d %H:%M:%S"))))):
+            and (int(int(int(time.time()) - video_dict["publish_time_stamp"]) / (3600*24)) >= 7 and int(video_dict["play_cnt"]) >= 500)\
+            and ((int(int(int(time.time()) - video_dict["publish_time_stamp"]) / (3600*24)) < 7 and int(video_dict["play_cnt"]) >= 100) or (int(video_dict["publish_time_stamp"]) >= int(time.mktime(time.strptime("2021-06-01 00:00:00", "%Y-%m-%d %H:%M:%S"))))):
             return True
         else:
             return False