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

+ 1 - 2
main/kanyikan_recommend.py

@@ -39,8 +39,7 @@ 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"]) >= 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"))))):
+            and ((int(int(int(time.time()) - video_dict["publish_time_stamp"]) / (3600*24)) >= 7 and int(video_dict["play_cnt"]) >= 500) or ((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