Explorar o código

视频号增加条数限制

zhangyong hai 1 ano
pai
achega
dd2bf18260
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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"