mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-31 14:33:54 -04:00
Fix double import causing an exception on MOBI input
This commit is contained in:
parent
70600166f0
commit
bacf2704e0
@ -195,7 +195,6 @@ class MobiReader(object):
|
|||||||
root = html.fromstring(self.processed_html)
|
root = html.fromstring(self.processed_html)
|
||||||
if root.xpath('descendant::p/descendant::p'):
|
if root.xpath('descendant::p/descendant::p'):
|
||||||
from html5_parser import parse
|
from html5_parser import parse
|
||||||
from calibre.ebooks.chardet import strip_encoding_declarations
|
|
||||||
self.log.warning('Malformed markup, parsing using html5-parser')
|
self.log.warning('Malformed markup, parsing using html5-parser')
|
||||||
self.processed_html = strip_encoding_declarations(self.processed_html)
|
self.processed_html = strip_encoding_declarations(self.processed_html)
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user