[twitter] always use '3' as 'search-stop' default (#8613)

https://github.com/mikf/gallery-dl/issues/8613#issuecomment-3626474518
This commit is contained in:
Mike Fährmann
2025-12-08 20:46:59 +01:00
parent b1b70528a6
commit ef9c472f94
3 changed files with 3 additions and 4 deletions

View File

@@ -6431,8 +6431,7 @@ extractor.twitter.search-stop
Type
``integer``
Default
* ``3`` if `search-pagination <extractor.twitter.search-pagination_>`__ is set to ``"cursor"``
* ``0`` otherwise
``3``
Description
Number of empty search result batches
to accept before stopping.

View File

@@ -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",

View File

@@ -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,