Skip to content

Commit

Permalink
add some debug hack
Browse files Browse the repository at this point in the history
  • Loading branch information
RicterZ committed Sep 20, 2024
1 parent 40072a8 commit dec3f44
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nhentai/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit dec3f44

Please sign in to comment.