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:
parent
acce8138a9
commit
1fe907bec2
1 changed files with 7 additions and 1 deletions
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue