This commit is contained in:
ldolse 2011-01-16 01:53:49 +08:00
parent 60c50f3944
commit d354a085b8

View file

@ -5,7 +5,6 @@
import re
from calibre.customize.conversion import InputFormatPlugin
from calibre.ebooks.conversion.utils import PreProcessor
class MOBIInput(InputFormatPlugin):
@ -40,7 +39,3 @@ def convert(self, stream, options, file_ext, log,
accelerators['pagebreaks'] = '//h:div[@class="mbp_pagebreak"]'
return mr.created_opf_path
def heuristics(self, options, html):
self.options = options
preprocessor = PreProcessor(self.options, log=getattr(self, 'log', None))
return preprocessor(html)