mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Convenience function to convert epub to azw3 directly without invoking the conversion pipeline at all
This commit is contained in:
parent
8e60bf8312
commit
44276ef20b
@ -1147,6 +1147,10 @@ def opf_to_azw3(opf, outpath, container):
|
||||
set_cover(oeb)
|
||||
outp.convert(oeb, outpath, inp, plumber.opts, container.log)
|
||||
|
||||
def epub_to_azw3(epub, outpath=None):
|
||||
container = get_container(epub, tweak_mode=True)
|
||||
outpath = outpath or (epub.rpartition('.')[0] + '.azw3')
|
||||
opf_to_azw3(container.name_to_abspath(container.opf_name), outpath, container)
|
||||
|
||||
class AZW3Container(Container):
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user