Fix #998216 (Lit files will not open in the viewer in the new 0.8.51 version)

This commit is contained in:
Kovid Goyal 2012-05-12 09:33:20 +05:30
parent be65853269
commit 1e7dbcc4cb

View File

@ -98,18 +98,18 @@ class EbookIterator(BookmarksMixin):
plumber.opts, plumber.input_fmt, self.log, plumber.opts, plumber.input_fmt, self.log,
{}, self.base) {}, self.base)
if not only_input_plugin: if not only_input_plugin:
# Run the HTML preprocess/parsing from the conversion pipeline as # Run the HTML preprocess/parsing from the conversion pipeline as
# well # well
if (processed or plumber.input_fmt.lower() in {'pdb', 'pdf', 'rb'} if (processed or plumber.input_fmt.lower() in {'pdb', 'pdf', 'rb'}
and not hasattr(self.pathtoopf, 'manifest')): and not hasattr(self.pathtoopf, 'manifest')):
if hasattr(self.pathtoopf, 'manifest'): if hasattr(self.pathtoopf, 'manifest'):
self.pathtoopf = write_oebbook(self.pathtoopf, self.base) self.pathtoopf = write_oebbook(self.pathtoopf, self.base)
self.pathtoopf = create_oebbook(self.log, self.pathtoopf, self.pathtoopf = create_oebbook(self.log, self.pathtoopf,
plumber.opts) plumber.opts)
if hasattr(self.pathtoopf, 'manifest'): if hasattr(self.pathtoopf, 'manifest'):
self.pathtoopf = write_oebbook(self.pathtoopf, self.base) self.pathtoopf = write_oebbook(self.pathtoopf, self.base)
self.book_format = os.path.splitext(self.pathtoebook)[1][1:].upper() self.book_format = os.path.splitext(self.pathtoebook)[1][1:].upper()
if getattr(plumber.input_plugin, 'is_kf8', False): if getattr(plumber.input_plugin, 'is_kf8', False):