From 2153d224eaa4181bc4ff46d7e906a62a9ef98060 Mon Sep 17 00:00:00 2001 From: GRiker Date: Fri, 12 Feb 2010 07:44:59 -0700 Subject: [PATCH] GwR fix for empty booksByTitle, add profile to metadata --- src/calibre/library/catalog.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/calibre/library/catalog.py b/src/calibre/library/catalog.py index 893c7dd1c9..96310d2111 100644 --- a/src/calibre/library/catalog.py +++ b/src/calibre/library/catalog.py @@ -833,7 +833,7 @@ class EPUB_MOBI(CatalogPlugin): def buildSources(self): if self.booksByTitle is None: self.fetchBooksByTitle() - if self.booksByTitle is None: + if not len(self.booksByTitle): return False self.fetchBooksByAuthor() self.generateHTMLDescriptions() @@ -3242,6 +3242,8 @@ class EPUB_MOBI(CatalogPlugin): OptionRecommendation.HIGH)) recommendations.append(('no_inline_toc', True, OptionRecommendation.HIGH)) + recommendations.append(('book_producer',opts.output_profile, + OptionRecommendation.HIGH)) # Run ebook-convert from calibre.ebooks.conversion.plumber import Plumber