add some debug hack

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

View File

@ -137,6 +137,8 @@ class Downloader(Singleton):
else: else:
logger.warning(f'Path "{folder}" already exist.') 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] queue = [(self, url, folder, constant.CONFIG['proxy']) for url in queue]
pool = multiprocessing.Pool(self.size, init_worker) pool = multiprocessing.Pool(self.size, init_worker)