mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-23 10:25:34 +01:00
EPUB Output: Remove <img> tags that point to the internet for their images as this causes the ever delicate ADE to crash. Fixes #4692 (epub file from NY Times (subscription) site crashes Sony PRS-700)
This commit is contained in:
parent
79bb3ba005
commit
d2b721e678
1 changed files with 1 additions and 1 deletions
|
|
@ -269,7 +269,7 @@ def workaround_ade_quirks(self):
|
|||
bad = []
|
||||
for x in XPath('//h:img')(body):
|
||||
src = x.get('src', '').strip()
|
||||
if src in ('', '#'):
|
||||
if src in ('', '#') or src.startswith('http:'):
|
||||
bad.append(x)
|
||||
for img in bad:
|
||||
img.getparent().remove(img)
|
||||
|
|
|
|||
Loading…
Reference in a new issue