소스 검색

增加:从用户主页下载视频

wangkun 3 년 전
부모
커밋
b5235b26ab
1개의 변경된 파일8개의 추가작업 그리고 8개의 파일을 삭제
  1. 8 8
      main/follow_list.py

+ 8 - 8
main/follow_list.py

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