This commit is contained in:
Kovid Goyal 2014-02-10 07:46:10 +05:30
parent 5e97d465df
commit 6925132bb6

View File

@ -22,6 +22,7 @@ from calibre.utils.localization import calibre_langcode_to_name, canonicalize_la
Option = namedtuple('Option', 'option, default, dest, action, help')
class EPUB_MOBI(CatalogPlugin):
'ePub catalog generator'
name = 'Catalog_EPUB_MOBI'
@ -149,7 +150,7 @@ class EPUB_MOBI(CatalogPlugin):
default=None,
dest='output_profile',
action=None,
help=_("Specifies the output profile. In some cases, an output profile is required to optimize the catalog for the device. For example, 'kindle' or 'kindle_dx' creates a structured Table of Contents with Sections and Articles.\n"
help=_("Specifies the output profile. In some cases, an output profile is required to optimize the catalog for the device. For example, 'kindle' or 'kindle_dx' creates a structured Table of Contents with Sections and Articles.\n" # noqa
"Default: '%default'\n"
"Applies to: AZW3, ePub, MOBI output formats")),
Option('--prefix-rules',
@ -280,7 +281,7 @@ class EPUB_MOBI(CatalogPlugin):
if opts.connected_device['is_device_connected'] and \
opts.connected_device['kind'] == 'device':
if opts.connected_device['serial']:
build_log.append(u" connected_device: '%s' #%s%s " % \
build_log.append(u" connected_device: '%s' #%s%s " %
(opts.connected_device['name'],
opts.connected_device['serial'][0:4],
'x' * (len(opts.connected_device['serial']) - 4)))