From 6d3c73eec368b6d1cef283d0a8241039b335eaf1 Mon Sep 17 00:00:00 2001 From: Alexander Graf <17130992+aandergr@users.noreply.github.com> Date: Mon, 31 Aug 2020 20:29:21 +0200 Subject: [PATCH] Adjust RateController to current observations --- instaloader/instaloadercontext.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instaloader/instaloadercontext.py b/instaloader/instaloadercontext.py index 5695f4d..ffca86e 100644 --- a/instaloader/instaloadercontext.py +++ b/instaloader/instaloadercontext.py @@ -577,7 +577,7 @@ class RateController: # Not static, to allow for the count_per_sliding_window to depend on context-inherent properties, such as # whether we are logged in. # pylint:disable=no-self-use - return 100 if query_type in ['iphone', 'other'] else 200 + return 75 if query_type in ['iphone', 'other'] else 200 def _reqs_in_sliding_window(self, query_type: Optional[str], current_time: float, window: float) -> List[float]: if query_type is not None: