mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix catalog generation when catalog title contains ampersands. Fixes #1078020 (cannot create epub catalogue)
This commit is contained in:
commit
dd4570c02b
@ -408,8 +408,8 @@ class EPUB_MOBI(CatalogPlugin):
|
||||
|
||||
# Run ebook-convert
|
||||
from calibre.ebooks.conversion.plumber import Plumber
|
||||
plumber = Plumber(os.path.join(catalog.catalog_path,
|
||||
opts.basename + '.opf'), path_to_output, log, report_progress=notification,
|
||||
plumber = Plumber(os.path.join(catalog.catalog_path, opts.basename + '.opf'),
|
||||
path_to_output, log, report_progress=notification,
|
||||
abort_after_input_dump=False)
|
||||
plumber.merge_ui_recommendations(recommendations)
|
||||
plumber.run()
|
||||
|
@ -3905,7 +3905,7 @@ class CatalogBuilder(object):
|
||||
mtc = 0
|
||||
|
||||
titleTag = Tag(soup, "dc:title")
|
||||
titleTag.insert(0,self.opts.catalog_title)
|
||||
titleTag.insert(0,escape(self.opts.catalog_title))
|
||||
metadata.insert(mtc, titleTag)
|
||||
mtc += 1
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user