Преглед на файлове

视频号增加条数限制

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"