|
@@ -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
|