Skip to content
This repository was archived by the owner on Apr 2, 2024. It is now read-only.

Commit 3703c32

Browse files
committed
Decreased threads and increased wait time for slower networks
1 parent 4a4fbc7 commit 3703c32

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

comic_scraper/comic_scraper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def download_chapter(self):
144144
os.makedirs(self.chapter_location)
145145

146146
# Download individual pages in parallel
147-
with concurrent.futures.ThreadPoolExecutor(max_workers=20) as executor:
147+
with concurrent.futures.ThreadPoolExecutor(max_workers=10) as executor:
148148
executor.map(download_func, pages)
149149

150150
# Convert the folder to a comic book zip filename
@@ -232,8 +232,8 @@ def manga_download_page(self, page):
232232
filename = os.path.join(self.chapter_location,
233233
'%0.3d.jpg' % (page_num))
234234

235-
max_retries = 5
236-
wait_retry_time = 5
235+
max_retries = 10
236+
wait_retry_time = 10
237237

238238
while True:
239239
r = requests.get(page_url)

0 commit comments

Comments
 (0)