From dec3f44542d601641f88cf6a642f6d653eaffba6 Mon Sep 17 00:00:00 2001 From: ricterz Date: Sat, 21 Sep 2024 00:21:01 +0800 Subject: [PATCH] add some debug hack --- nhentai/downloader.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nhentai/downloader.py b/nhentai/downloader.py index 227a0f0..f481472 100644 --- a/nhentai/downloader.py +++ b/nhentai/downloader.py @@ -137,6 +137,8 @@ def start_download(self, queue, folder='', regenerate_cbz=False): else: logger.warning(f'Path "{folder}" already exist.') + if os.getenv('DEBUG', None) == 'NODOWNLOAD': + return queue = [(self, url, folder, constant.CONFIG['proxy']) for url in queue] pool = multiprocessing.Pool(self.size, init_worker)