mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
EPubInput: make convert conform to interface.
This commit is contained in:
parent
c06f894229
commit
8d774b6e7c
@ -51,8 +51,7 @@ class EPUBInput(InputFormatPlugin):
|
|||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def convert(self, stream, options, file_ext, parse_cache, log,
|
def convert(self, stream, options, file_ext, log, accelerators):
|
||||||
accelerators):
|
|
||||||
from calibre.utils.zipfile import ZipFile
|
from calibre.utils.zipfile import ZipFile
|
||||||
from calibre import walk
|
from calibre import walk
|
||||||
from calibre.ebooks import DRMError
|
from calibre.ebooks import DRMError
|
||||||
@ -72,6 +71,5 @@ class EPUBInput(InputFormatPlugin):
|
|||||||
if os.path.exists(encfile):
|
if os.path.exists(encfile):
|
||||||
if not self.process_encryption(encfile, opf, log):
|
if not self.process_encryption(encfile, opf, log):
|
||||||
raise DRMError(os.path.basename(path))
|
raise DRMError(os.path.basename(path))
|
||||||
|
|
||||||
return opf
|
return os.path.join(os.getcwd(), opf)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user