From d2b721e678b8dc8927ba5d58bb724f378c0a9eea Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 29 Jan 2010 12:58:07 -0700 Subject: [PATCH] EPUB Output: Remove 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) --- src/calibre/ebooks/epub/output.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/epub/output.py b/src/calibre/ebooks/epub/output.py index 8e9c9efea9..6e381d5237 100644 --- a/src/calibre/ebooks/epub/output.py +++ b/src/calibre/ebooks/epub/output.py @@ -269,7 +269,7 @@ class EPUBOutput(OutputFormatPlugin): 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)