mirror of
https://github.com/kemayo/leech
synced 2026-04-21 12:00:50 +02:00
Be less verbose when downloading images
This commit is contained in:
parent
9510a22cb0
commit
4856649424
1 changed files with 2 additions and 2 deletions
|
|
@ -100,10 +100,10 @@ def chapter_html(
|
|||
if image_fetch:
|
||||
all_images = soup.find_all('img', src=True)
|
||||
len_of_all_images = len(all_images)
|
||||
print(f"Found {len_of_all_images} images in chapter {i}")
|
||||
# print(f"Found {len_of_all_images} images in chapter {i}")
|
||||
|
||||
for count, img in enumerate(all_images):
|
||||
print(f"[Chapter {i}] Image ({count+1} out of {len_of_all_images}). Source: ", end="")
|
||||
print(f"[{chapter.title}] Image ({count+1} out of {len_of_all_images}). Source: ", end="")
|
||||
img_contents = get_image_from_url(img['src'], image_format, compress_images, max_image_size)
|
||||
chapter.images.append(Image(
|
||||
path=f"images/ch{i}_leechimage_{count}.{img_contents[1]}",
|
||||
|
|
|
|||
Loading…
Reference in a new issue