[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
|
Type
|
||||||
``integer``
|
``integer``
|
||||||
Default
|
Default
|
||||||
* ``3`` if `search-pagination <extractor.twitter.search-pagination_>`__ is set to ``"cursor"``
|
``3``
|
||||||
* ``0`` otherwise
|
|
||||||
Description
|
Description
|
||||||
Number of empty search result batches
|
Number of empty search result batches
|
||||||
to accept before stopping.
|
to accept before stopping.
|
||||||
|
|||||||
@@ -886,7 +886,7 @@
|
|||||||
"search-limit": 20,
|
"search-limit": 20,
|
||||||
"search-pagination": "cursor",
|
"search-pagination": "cursor",
|
||||||
"search-results" : "latest",
|
"search-results" : "latest",
|
||||||
"search-stop" : "auto",
|
"search-stop" : 3,
|
||||||
"size" : ["orig", "4096x4096", "large", "medium", "small"],
|
"size" : ["orig", "4096x4096", "large", "medium", "small"],
|
||||||
"text-tweets" : false,
|
"text-tweets" : false,
|
||||||
"tweet-endpoint": "auto",
|
"tweet-endpoint": "auto",
|
||||||
|
|||||||
@@ -1483,7 +1483,7 @@ class TwitterAPI():
|
|||||||
|
|
||||||
stop_tweets = cfg("search-stop")
|
stop_tweets = cfg("search-stop")
|
||||||
if stop_tweets is None or stop_tweets == "auto":
|
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(
|
return self._pagination_tweets(
|
||||||
endpoint, variables,
|
endpoint, variables,
|
||||||
|
|||||||
Reference in New Issue
Block a user