mirror of
https://github.com/kemayo/leech
synced 2025-12-06 08:22:56 +01:00
Avoid potential image overlaps with nested sections
This commit is contained in:
parent
1fe907bec2
commit
bedaec9989
1 changed files with 2 additions and 2 deletions
|
|
@ -114,11 +114,11 @@ def chapter_html(
|
|||
if img['src'] not in already_fetched_images:
|
||||
img_contents = get_image_from_url(img['src'], image_format, compress_images, max_image_size, always_convert_images)
|
||||
chapter.images.append(Image(
|
||||
path=f"images/ch{i}_leechimage_{count}.{img_contents[1]}",
|
||||
path=f"{story.id}/images/ch{i}_leechimage_{count}.{img_contents[1]}",
|
||||
contents=img_contents[0],
|
||||
content_type=img_contents[2]
|
||||
))
|
||||
already_fetched_images[img['src']] = f"../images/ch{i}_leechimage_{count}.{img_contents[1]}"
|
||||
already_fetched_images[img['src']] = f"images/ch{i}_leechimage_{count}.{img_contents[1]}"
|
||||
else:
|
||||
print(img['src'], "(already", already_fetched_images.get(img['src']), ")")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue