mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
b000d470ed
commit
a5cdad2705
@ -210,9 +210,11 @@ class TXTInput(InputFormatPlugin):
|
||||
oeb = html_input.convert(open(htmlfile.name, 'rb'), options, 'html', log,
|
||||
{})
|
||||
# Add images from from txtz archive to oeb.
|
||||
for image, mime in images:
|
||||
id, href = oeb.manifest.generate(id='image', href=image)
|
||||
oeb.manifest.add(id, href, mime)
|
||||
# Disabled as the conversion pipeline adds unmanifested items that are
|
||||
# referred to in the content automatically
|
||||
#for image, mime in images:
|
||||
# id, href = oeb.manifest.generate(id='image', href=image)
|
||||
# oeb.manifest.add(id, href, mime)
|
||||
options.debug_pipeline = odi
|
||||
os.remove(htmlfile.name)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user