This commit is contained in:
Kovid Goyal 2019-08-29 17:23:30 +05:30
parent aa8f8fa098
commit f4f29c84c0
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -358,7 +358,7 @@ def link_replacer(base, url):
for img in img_xpath(root):
img_name = self.href_to_name(img.get('src'), name)
if img_name:
img.set('data-calibre-src', )
img.set('data-calibre-src', img_name)
changed.add(name)
for link in res_link_xpath(root):
ltype = (link.get('type') or 'text/css').lower()