|
@@ -37,9 +37,11 @@ class Kanyikanrecommend:
|
|
|
|
|
|
@classmethod
|
|
|
def download_rule(cls, video_dict):
|
|
|
+ now = int(time.time())
|
|
|
+ publish_day = int(int(now - video_dict["publish_time_stamp"]) / (3600*24))
|
|
|
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) 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")))))):
|
|
|
+ and ((publish_day >= 7 and int(video_dict["play_cnt"]) >= 500) or (publish_day < 7 and int(video_dict["play_cnt"]) >= 100)):
|
|
|
return True
|
|
|
else:
|
|
|
return False
|