Fix volume 7
continuous-integration/drone/push Build was killed Details

This commit is contained in:
Michel Roux 2023-01-12 14:23:00 +01:00
parent 0ff28d36bd
commit 594f59529b
1 changed files with 6 additions and 0 deletions

View File

@ -53,6 +53,12 @@ class MyChapter(Chapter):
# return new element-tree
return etree
def replace_images(self, image_dir: str, timeout: int = 10):
super().replace_images(image_dir, timeout)
for img in self.etree.xpath(".//img"):
if img.attrib["src"].startswith("http"):
img.getparent().remove(img)
def async_wrap(func):
@wraps(func)