From 71c65e89d178cde2e2a625d078eba713139a3601 Mon Sep 17 00:00:00 2001 From: I-Al-Istannen Date: Mon, 28 Oct 2024 19:31:50 +0100 Subject: [PATCH] Internalize images in course descriptions --- PFERD/crawl/ilias/ilias_web_crawler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/PFERD/crawl/ilias/ilias_web_crawler.py b/PFERD/crawl/ilias/ilias_web_crawler.py index 8fbd90f..08add07 100644 --- a/PFERD/crawl/ilias/ilias_web_crawler.py +++ b/PFERD/crawl/ilias/ilias_web_crawler.py @@ -476,6 +476,7 @@ instance's greatest bottleneck. async with dl as (bar, sink): description = clean(insert_base_markup(description)) + description = await self.internalize_images(description) sink.file.write(description.prettify().encode("utf-8")) sink.done()