mirror of
https://github.com/gryf/ebook-converter.git
synced 2026-04-14 09:33:32 +02:00
Convert calibre modules to ebook_converter.
Here is the first batch of modules, which are needed for converting several formats to LRF. Some of the logic has been change, more cleanups will follow.
This commit is contained in:
@@ -14,8 +14,8 @@ import zlib
|
||||
import io
|
||||
|
||||
|
||||
from calibre.ebooks.pdb.formatreader import FormatReader
|
||||
from calibre.ebooks.pdb.ztxt import zTXTError
|
||||
from ebook_converter.ebooks.pdb.formatreader import FormatReader
|
||||
from ebook_converter.ebooks.pdb.ztxt import zTXTError
|
||||
|
||||
SUPPORTED_VERSION = (1, 40)
|
||||
|
||||
@@ -83,7 +83,7 @@ class Reader(FormatReader):
|
||||
self.log.info('Converting text to OEB...')
|
||||
stream = io.BytesIO(raw_txt)
|
||||
|
||||
from calibre.customize.ui import plugin_for_input_format
|
||||
from ebook_converter.customize.ui import plugin_for_input_format
|
||||
|
||||
txt_plugin = plugin_for_input_format('txt')
|
||||
for opt in txt_plugin.options:
|
||||
|
||||
Reference in New Issue
Block a user