mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 00:03:26 +02:00
...
This commit is contained in:
parent
262c9f9fcc
commit
8caf640ca9
1 changed files with 5 additions and 3 deletions
|
|
@ -174,11 +174,13 @@ def __enter__(self, processed=False):
|
|||
plumber.opts, plumber.input_fmt, self.log,
|
||||
{}, self.base)
|
||||
|
||||
if hasattr(self.pathtoopf, 'manifest'):
|
||||
self.pathtoopf = write_oebbook(self.pathtoopf, self.base)
|
||||
elif processed or plumber.input_fmt.lower() in ('pdf', 'rb'):
|
||||
if processed or plumber.input_fmt.lower() in ('pdf', 'rb') and \
|
||||
not hasattr(self.pathtoopf, 'manifest'):
|
||||
self.pathtoopf = create_oebbook(self.log, self.pathtoopf, plumber.opts,
|
||||
plumber.input_plugin)
|
||||
if hasattr(self.pathtoopf, 'manifest'):
|
||||
self.pathtoopf = write_oebbook(self.pathtoopf, self.base)
|
||||
|
||||
|
||||
self.opf = OPF(self.pathtoopf, os.path.dirname(self.pathtoopf))
|
||||
self.language = self.opf.language
|
||||
|
|
|
|||
Loading…
Reference in a new issue