mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-22 11:46:07 +01:00
...
This commit is contained in:
commit
4a7788ced0
2 changed files with 7 additions and 4 deletions
|
|
@ -7,7 +7,7 @@
|
|||
__copyright__ = '2012, Kovid Goyal <kovid@kovidgoyal.net>'
|
||||
__docformat__ = 'restructuredtext en'
|
||||
|
||||
import os
|
||||
import os, shutil
|
||||
from collections import namedtuple
|
||||
|
||||
from calibre import strftime
|
||||
|
|
@ -346,8 +346,6 @@ def run(self, path_to_output, opts, db, notification=DummyReporter()):
|
|||
recommendations.append(('remove_fake_margins', False,
|
||||
OptionRecommendation.HIGH))
|
||||
recommendations.append(('comments', '', OptionRecommendation.HIGH))
|
||||
recommendations.append(('output_profile', opts.output_profile,
|
||||
OptionRecommendation.HIGH))
|
||||
|
||||
"""
|
||||
>>> Use to debug generated catalog code before pipeline conversion <<<
|
||||
|
|
@ -362,7 +360,9 @@ def run(self, path_to_output, opts, db, notification=DummyReporter()):
|
|||
recommendations.append(('debug_pipeline', dp,
|
||||
OptionRecommendation.HIGH))
|
||||
|
||||
if opts.output_profile and opts.output_profile.startswith("kindle"):
|
||||
if opts.fmt == 'mobi' and opts.output_profile and opts.output_profile.startswith("kindle"):
|
||||
recommendations.append(('output_profile', opts.output_profile,
|
||||
OptionRecommendation.HIGH))
|
||||
recommendations.append(('no_inline_toc', True,
|
||||
OptionRecommendation.HIGH))
|
||||
recommendations.append(('book_producer',opts.output_profile,
|
||||
|
|
|
|||
|
|
@ -103,6 +103,9 @@ def __init__(self, db, _opts, plugin,
|
|||
self.cache_dir = os.path.join(config_dir, 'caches', 'catalog')
|
||||
self.catalog_path = PersistentTemporaryDirectory("_epub_mobi_catalog", prefix='')
|
||||
self.excluded_tags = self.get_excluded_tags()
|
||||
self.generate_for_kindle_azw3 = True if (_opts.fmt == 'azw3' and
|
||||
_opts.output_profile and
|
||||
_opts.output_profile.startswith("kindle")) else False
|
||||
self.generate_for_kindle_mobi = True if (_opts.fmt == 'mobi' and
|
||||
_opts.output_profile and
|
||||
_opts.output_profile.startswith("kindle")) else False
|
||||
|
|
|
|||
Loading…
Reference in a new issue