1
0
Fork 0
mirror of https://github.com/kemayo/leech synced 2025-12-06 16:33:16 +01:00

Pass image arguments to nested sections

This commit is contained in:
David Lynch 2024-12-04 16:42:47 -06:00
parent acce8138a9
commit 1fe907bec2

View file

@ -95,7 +95,13 @@ def chapter_html(
if hasattr(chapter, '__iter__'): if hasattr(chapter, '__iter__'):
# This is a Section # This is a Section
chapters.extend(chapter_html( chapters.extend(chapter_html(
chapter, titleprefix=title, normalize=normalize)) chapter, titleprefix=title, normalize=normalize,
image_fetch=image_fetch,
image_format=image_format,
always_convert_images=always_convert_images,
compress_images=compress_images,
max_image_size=max_image_size
))
else: else:
soup = BeautifulSoup(chapter.contents, 'html5lib') soup = BeautifulSoup(chapter.contents, 'html5lib')
if image_fetch: if image_fetch: