This commit is contained in:
Kovid Goyal 2011-03-24 13:18:12 -06:00
parent 78fbab07a7
commit 46b90f0ca3

View File

@ -17,7 +17,8 @@ from calibre.utils.localization import get_language
from calibre.web.feeds.recipes.collection import \ from calibre.web.feeds.recipes.collection import \
get_builtin_recipe_collection, get_custom_recipe_collection, \ get_builtin_recipe_collection, get_custom_recipe_collection, \
SchedulerConfig, download_builtin_recipe, update_custom_recipe, \ 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 from calibre.utils.pyparsing import ParseException
class NewsTreeItem(object): class NewsTreeItem(object):
@ -153,7 +154,7 @@ class RecipeModel(QAbstractItemModel, SearchQueryParser):
except: except:
import traceback import traceback
traceback.print_exc() traceback.print_exc()
return P('recipes/%s.recipe'%urn, data=True) return get_builtin_recipe(urn)
def get_recipe(self, urn, download=True): def get_recipe(self, urn, download=True):
coll = self.custom_recipe_collection if urn.startswith('custom:') \ coll = self.custom_recipe_collection if urn.startswith('custom:') \