From 09d42b8e89a55825af2bcea4d55377f36bdc1af6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Wed, 9 Apr 2025 20:37:20 +0200 Subject: [PATCH] [webtoons] use a default delay pf 0.5-1.5s between requests (#7329) --- docs/configuration.rst | 1 + docs/gallery-dl.conf | 8 ++++++-- gallery_dl/extractor/webtoons.py | 1 + 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/configuration.rst b/docs/configuration.rst index 1ad5e661..492a1d62 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -401,6 +401,7 @@ Default ``soundgasm``, ``urlgalleries``, ``vk``, + ``webtoons``, ``weebcentral``, ``xfolio``, ``zerochan`` diff --git a/docs/gallery-dl.conf b/docs/gallery-dl.conf index 8ede5683..d0911f5d 100644 --- a/docs/gallery-dl.conf +++ b/docs/gallery-dl.conf @@ -732,11 +732,11 @@ "api-key" : null, "metadata": false }, - "weebcentral": + "webtoons": { "sleep-request": "0.5-1.5" }, - "xfolio": + "weebcentral": { "sleep-request": "0.5-1.5" }, @@ -751,6 +751,10 @@ "retweets" : false, "videos" : true }, + "xfolio": + { + "sleep-request": "0.5-1.5" + }, "ytdl": { "cmdline-args": null, diff --git a/gallery_dl/extractor/webtoons.py b/gallery_dl/extractor/webtoons.py index 4073cc98..9c228150 100644 --- a/gallery_dl/extractor/webtoons.py +++ b/gallery_dl/extractor/webtoons.py @@ -20,6 +20,7 @@ class WebtoonsBase(): category = "webtoons" root = "https://www.webtoons.com" cookies_domain = ".webtoons.com" + request_interval = (0.5, 1.5) def setup_agegate_cookies(self): self.cookies_update({