[sankaku] increase default values for 'wait-min/-max'
This commit is contained in:
@@ -590,7 +590,7 @@ extractor.sankaku.wait-min & .wait-max
|
|||||||
--------------------------------------
|
--------------------------------------
|
||||||
=========== =====
|
=========== =====
|
||||||
Type ``float``
|
Type ``float``
|
||||||
Default ``2.5`` and ``5.0``
|
Default ``3.0`` and ``6.0``
|
||||||
Description Minimum and maximum wait time in seconds between each image
|
Description Minimum and maximum wait time in seconds between each image
|
||||||
|
|
||||||
Sankaku Channel responds with ``429 Too Many Requests`` if it
|
Sankaku Channel responds with ``429 Too Many Requests`` if it
|
||||||
|
|||||||
@@ -50,8 +50,8 @@
|
|||||||
{
|
{
|
||||||
"username": null,
|
"username": null,
|
||||||
"password": null,
|
"password": null,
|
||||||
"wait-min": 2.5,
|
"wait-min": 3.0,
|
||||||
"wait-max": 5.0
|
"wait-max": 6.0
|
||||||
},
|
},
|
||||||
"imgur":
|
"imgur":
|
||||||
{
|
{
|
||||||
@@ -92,8 +92,8 @@
|
|||||||
{
|
{
|
||||||
"username": null,
|
"username": null,
|
||||||
"password": null,
|
"password": null,
|
||||||
"wait-min": 2.5,
|
"wait-min": 3.0,
|
||||||
"wait-max": 5.0
|
"wait-max": 6.0
|
||||||
},
|
},
|
||||||
"seiga":
|
"seiga":
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -33,8 +33,8 @@ class SankakuExtractor(SharedConfigExtractor):
|
|||||||
self.start_page = 1
|
self.start_page = 1
|
||||||
self.start_post = 0
|
self.start_post = 0
|
||||||
self.extags = self.config("tags", False)
|
self.extags = self.config("tags", False)
|
||||||
self.wait_min = self.config("wait-min", 2.5)
|
self.wait_min = self.config("wait-min", 3.0)
|
||||||
self.wait_max = self.config("wait-max", 5.0)
|
self.wait_max = self.config("wait-max", 6.0)
|
||||||
if self.wait_max < self.wait_min:
|
if self.wait_max < self.wait_min:
|
||||||
self.wait_max = self.wait_min
|
self.wait_max = self.wait_min
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user