ソースを参照

视频号增加条数限制

zhangyong 1 年間 前
コミット
dd2bf18260
1 ファイル変更4 行追加0 行削除
  1. 4 0
      shipinhao/shipinhao_author/shipinhao_author.py

+ 4 - 0
shipinhao/shipinhao_author/shipinhao_author.py

@@ -97,6 +97,10 @@ class ShiPinHaoAuthor(object):
                 return False
 
     def get_account_videos(self):
+        if self.download_cnt >= int(
+                self.rule_dict.get("videos_cnt", {}).get("min", 300)
+        ):
+            return
         account_id = self.get_account_id()
         if account_id:
             url = "http://61.48.133.26:30001/FinderGetUpMasterNextPage"