From 24d76bd8a49c683a5e65588106d55d38bc3fe278 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 9 Jul 2009 13:50:37 -0600 Subject: [PATCH] Use user specified output profile and base font size when downloading recipes in the GUI --- src/calibre/gui2/tools.py | 10 ++++++++++ src/calibre/web/feeds/recipes/recipe_nytimes_sub.py | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/tools.py b/src/calibre/gui2/tools.py index 34ab2d9b77..6b395dac79 100644 --- a/src/calibre/gui2/tools.py +++ b/src/calibre/gui2/tools.py @@ -152,10 +152,20 @@ def convert_bulk_ebook(parent, db, book_ids, out_format=None): def fetch_scheduled_recipe(recipe, script): from calibre.gui2.dialogs.scheduler import config + from calibre.ebooks.conversion.config import load_defaults fmt = prefs['output_format'].lower() pt = PersistentTemporaryFile(suffix='_recipe_out.%s'%fmt.lower()) pt.close() recs = [] + ps = load_defaults('page_setup') + if 'output_profile' in ps: + recs.append(('output_profile', ps['output_profile'], + OptionRecommendation.HIGH)) + lf = load_defaults('look_and_feel') + if lf.get('base_font_size', 0.0) != 0.0: + recs.append(('base_font_size', ps['base_font_size'], + OptionRecommendation.HIGH)) + args = [script, pt.name, recs] if recipe.needs_subscription: x = config.get('recipe_account_info_%s'%recipe.id, False) diff --git a/src/calibre/web/feeds/recipes/recipe_nytimes_sub.py b/src/calibre/web/feeds/recipes/recipe_nytimes_sub.py index c26b4af735..b558d688a4 100644 --- a/src/calibre/web/feeds/recipes/recipe_nytimes_sub.py +++ b/src/calibre/web/feeds/recipes/recipe_nytimes_sub.py @@ -48,7 +48,7 @@ class NYTimes(BasicNewsRecipe): ans = [] allSectionKeywords = ['The Front Page', 'International','National','Obituaries','Editorials', 'New York','Business Day','Sports','Dining','Arts','Home','Styles'] - excludeSectionKeywords = ['Sports','Dining','Styles'] + excludeSectionKeywords = ['Dining','Styles'] # Find each instance of class="section-headline", class="story", class="story headline"