1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 18:53:21 +01:00

[nijie] set 1-2s delay between requests to avoid 429 errors

This commit is contained in:
Mike Fährmann 2023-11-03 23:44:47 +01:00
parent dd14adccf6
commit 3984a49abf
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -19,6 +19,7 @@ class NijieExtractor(AsynchronousMixin, BaseExtractor):
directory_fmt = ("{category}", "{user_id}")
filename_fmt = "{image_id}_p{num}.{extension}"
archive_fmt = "{image_id}_{num}"
request_interval = (1.0, 2.0)
def __init__(self, match):
BaseExtractor.__init__(self, match)