|
@@ -494,14 +494,14 @@ class Follow:
|
|
|
Feishu.update_values("follow", "kuaishou", "bnj9op", "A2:P2", values)
|
|
|
Common.logger("follow").info("添加视频至follow_feeds成功:{}\n", video_title)
|
|
|
|
|
|
- # 翻页
|
|
|
- cls.person_pcursor = r.json()["pcursor"]
|
|
|
- # 视频发布时间 <= 7 天
|
|
|
- if int(time.time()) - int(cls.send_time) <= 604800:
|
|
|
- cls.get_videos_from_person(log_type, uid)
|
|
|
- else:
|
|
|
- cls.person_pcursor = ""
|
|
|
- return
|
|
|
+ # 翻页
|
|
|
+ cls.person_pcursor = r.json()["pcursor"]
|
|
|
+ # 视频发布时间 <= 7 天
|
|
|
+ if int(time.time()) - int(cls.send_time) <= 604800:
|
|
|
+ cls.get_videos_from_person(log_type, uid)
|
|
|
+ else:
|
|
|
+ cls.person_pcursor = ""
|
|
|
+ return
|
|
|
|
|
|
except Exception as e:
|
|
|
Common.logger(log_type).error("获取个人主页视频异常:{}\n", e)
|