EPubInput: make convert conform to interface.

This commit is contained in:
John Schember 2009-04-11 11:46:55 -04:00
parent c06f894229
commit 8d774b6e7c

View File

@ -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)