mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
...
This commit is contained in:
parent
e43311f7db
commit
d45fecc97c
@ -546,7 +546,6 @@ class EPUB_MOBI(CatalogPlugin):
|
|||||||
# descriptionClip limits size of NCX descriptions (Kindle only)
|
# descriptionClip limits size of NCX descriptions (Kindle only)
|
||||||
# includeSources Used in processSpecialTags to skip tags like '[SPL]'
|
# includeSources Used in processSpecialTags to skip tags like '[SPL]'
|
||||||
# notification Used to check for cancel, report progress
|
# notification Used to check for cancel, report progress
|
||||||
# plugin_path Plugin zip file (resources)
|
|
||||||
# stylesheet CSS stylesheet
|
# stylesheet CSS stylesheet
|
||||||
# title dc:title in OPF metadata, NCX periodical
|
# title dc:title in OPF metadata, NCX periodical
|
||||||
# verbosity level of diagnostic printout
|
# verbosity level of diagnostic printout
|
||||||
@ -576,7 +575,6 @@ class EPUB_MOBI(CatalogPlugin):
|
|||||||
self.__ncxSoup = None
|
self.__ncxSoup = None
|
||||||
self.__playOrder = 1
|
self.__playOrder = 1
|
||||||
self.__plugin = plugin
|
self.__plugin = plugin
|
||||||
self.__plugin_path = opts.plugin_path
|
|
||||||
self.__progressInt = 0.0
|
self.__progressInt = 0.0
|
||||||
self.__progressString = ''
|
self.__progressString = ''
|
||||||
self.__reporter = report_progress
|
self.__reporter = report_progress
|
||||||
@ -743,13 +741,6 @@ class EPUB_MOBI(CatalogPlugin):
|
|||||||
return self.__plugin
|
return self.__plugin
|
||||||
return property(fget=fget)
|
return property(fget=fget)
|
||||||
@dynamic_property
|
@dynamic_property
|
||||||
def pluginPath(self):
|
|
||||||
def fget(self):
|
|
||||||
return self.__pluginPath
|
|
||||||
def fset(self, val):
|
|
||||||
self.__pluginPath = val
|
|
||||||
return property(fget=fget, fset=fset)
|
|
||||||
@dynamic_property
|
|
||||||
def progressInt(self):
|
def progressInt(self):
|
||||||
def fget(self):
|
def fget(self):
|
||||||
return self.__progressInt
|
return self.__progressInt
|
||||||
@ -1211,6 +1202,7 @@ class EPUB_MOBI(CatalogPlugin):
|
|||||||
imgTag['src'] = "../images/thumbnail_default.jpg"
|
imgTag['src'] = "../images/thumbnail_default.jpg"
|
||||||
imgTag['alt'] = "cover"
|
imgTag['alt'] = "cover"
|
||||||
|
|
||||||
|
|
||||||
# Tweak image size if we're building EPUB, not sure why this is needed
|
# Tweak image size if we're building EPUB, not sure why this is needed
|
||||||
if self.opts.fmt == 'mobi':
|
if self.opts.fmt == 'mobi':
|
||||||
imgTag['style'] = 'width: %dpx; height:%dpx;' % (self.THUMB_WIDTH, self.THUMB_HEIGHT)
|
imgTag['style'] = 'width: %dpx; height:%dpx;' % (self.THUMB_WIDTH, self.THUMB_HEIGHT)
|
||||||
@ -3103,7 +3095,6 @@ class EPUB_MOBI(CatalogPlugin):
|
|||||||
self.opts.output_profile = op
|
self.opts.output_profile = op
|
||||||
opts.descriptionClip = 380 if op.endswith('dx') or 'kindle' not in op else 90
|
opts.descriptionClip = 380 if op.endswith('dx') or 'kindle' not in op else 90
|
||||||
opts.basename = "Catalog"
|
opts.basename = "Catalog"
|
||||||
opts.plugin_path = self.plugin_path
|
|
||||||
opts.cli_environment = not hasattr(opts,'sync')
|
opts.cli_environment = not hasattr(opts,'sync')
|
||||||
# GwR *** hardwired to sort by author, could be an option if passed in opts
|
# GwR *** hardwired to sort by author, could be an option if passed in opts
|
||||||
opts.sort_descriptions_by_author = True
|
opts.sort_descriptions_by_author = True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user