From 46b90f0ca381e6cc304901b25d7868d559d2de59 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 24 Mar 2011 13:18:12 -0600 Subject: [PATCH] ... --- src/calibre/web/feeds/recipes/model.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/calibre/web/feeds/recipes/model.py b/src/calibre/web/feeds/recipes/model.py index 2de674cc15..2c52c85f83 100644 --- a/src/calibre/web/feeds/recipes/model.py +++ b/src/calibre/web/feeds/recipes/model.py @@ -17,7 +17,8 @@ from calibre.utils.localization import get_language from calibre.web.feeds.recipes.collection import \ get_builtin_recipe_collection, get_custom_recipe_collection, \ SchedulerConfig, download_builtin_recipe, update_custom_recipe, \ - add_custom_recipe, remove_custom_recipe, get_custom_recipe + add_custom_recipe, remove_custom_recipe, get_custom_recipe, \ + get_builtin_recipe from calibre.utils.pyparsing import ParseException class NewsTreeItem(object): @@ -153,7 +154,7 @@ class RecipeModel(QAbstractItemModel, SearchQueryParser): except: import traceback traceback.print_exc() - return P('recipes/%s.recipe'%urn, data=True) + return get_builtin_recipe(urn) def get_recipe(self, urn, download=True): coll = self.custom_recipe_collection if urn.startswith('custom:') \