diff --git a/docs/configuration.rst b/docs/configuration.rst index b33cf225..b85d042f 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -6431,8 +6431,7 @@ extractor.twitter.search-stop Type ``integer`` Default - * ``3`` if `search-pagination `__ is set to ``"cursor"`` - * ``0`` otherwise + ``3`` Description Number of empty search result batches to accept before stopping. diff --git a/docs/gallery-dl.conf b/docs/gallery-dl.conf index 8574ec31..74bac598 100644 --- a/docs/gallery-dl.conf +++ b/docs/gallery-dl.conf @@ -886,7 +886,7 @@ "search-limit": 20, "search-pagination": "cursor", "search-results" : "latest", - "search-stop" : "auto", + "search-stop" : 3, "size" : ["orig", "4096x4096", "large", "medium", "small"], "text-tweets" : false, "tweet-endpoint": "auto", diff --git a/gallery_dl/extractor/twitter.py b/gallery_dl/extractor/twitter.py index addb5f06..0c2b9191 100644 --- a/gallery_dl/extractor/twitter.py +++ b/gallery_dl/extractor/twitter.py @@ -1483,7 +1483,7 @@ class TwitterAPI(): stop_tweets = cfg("search-stop") if stop_tweets is None or stop_tweets == "auto": - stop_tweets = 3 if update_variables is None else 0 + stop_tweets = 3 return self._pagination_tweets( endpoint, variables,