[twitter] always use '3' as 'search-stop' default (#8613)
https://github.com/mikf/gallery-dl/issues/8613#issuecomment-3626474518
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user