mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 18:13:04 +02:00
EPubInput: make convert conform to interface.
This commit is contained in:
parent
c06f894229
commit
8d774b6e7c
1 changed files with 3 additions and 5 deletions
|
|
@ -51,8 +51,7 @@ def process_ecryption(cls, encfile, opf, log):
|
|||
traceback.print_exc()
|
||||
return False
|
||||
|
||||
def convert(self, stream, options, file_ext, parse_cache, log,
|
||||
accelerators):
|
||||
def convert(self, stream, options, file_ext, log, accelerators):
|
||||
from calibre.utils.zipfile import ZipFile
|
||||
from calibre import walk
|
||||
from calibre.ebooks import DRMError
|
||||
|
|
@ -72,6 +71,5 @@ def convert(self, stream, options, file_ext, parse_cache, log,
|
|||
if os.path.exists(encfile):
|
||||
if not self.process_encryption(encfile, opf, log):
|
||||
raise DRMError(os.path.basename(path))
|
||||
|
||||
return opf
|
||||
|
||||
|
||||
return os.path.join(os.getcwd(), opf)
|
||||
|
|
|
|||
Loading…
Reference in a new issue