4
0
mirror of https://github.com/RicterZ/nhentai.git synced 2025-04-30 00:00:48 +02:00

add some debug hack

This commit is contained in:
ricterz 2024-09-21 00:21:01 +08:00
parent 40072a8483
commit dec3f44542

@ -137,6 +137,8 @@ class Downloader(Singleton):
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)