diff --git a/oml/media/epub.py b/oml/media/epub.py index 16f3431..e9dacde 100644 --- a/oml/media/epub.py +++ b/oml/media/epub.py @@ -46,7 +46,7 @@ def cover(path): elif 'html' in e.attrib['media-type']: filename = unquote(e.attrib['href']) filename = os.path.normpath(os.path.join(os.path.dirname(opf[0]), filename)) - html = z.read(filename).decode('utf-8') + html = z.read(filename).decode('utf-8', 'ignore') img = re.compile('