mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
78fbab07a7
commit
46b90f0ca3
@ -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:') \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user