From 6988fc8ccce13a13f6b035c67edd578035b5133b Mon Sep 17 00:00:00 2001 From: David Lynch Date: Sat, 23 Nov 2024 22:34:04 -0600 Subject: [PATCH] Add output mentioning when an image is cached --- ebook/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ebook/__init__.py b/ebook/__init__.py index 962cb8b..893cc7e 100644 --- a/ebook/__init__.py +++ b/ebook/__init__.py @@ -113,6 +113,8 @@ def chapter_html( content_type=img_contents[2] )) 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']), ")") img['src'] = already_fetched_images.get(img['src']) if not img.has_attr('alt'):