[allrecipes] times improvment, fix search string with spaces
This commit is contained in:
parent
a48bed0cf0
commit
f14aeb1363
2 changed files with 17 additions and 3 deletions
|
|
@ -22,6 +22,8 @@ from weboob.tools.backend import BaseBackend
|
|||
|
||||
from .browser import AllrecipesBrowser
|
||||
|
||||
from urllib import quote_plus
|
||||
|
||||
__all__ = ['AllrecipesBackend']
|
||||
|
||||
|
||||
|
|
@ -41,7 +43,7 @@ class AllrecipesBackend(BaseBackend, ICapRecipe):
|
|||
return self.browser.get_recipe(id)
|
||||
|
||||
def iter_recipes(self, pattern):
|
||||
return self.browser.iter_recipes(pattern.encode('utf-8'))
|
||||
return self.browser.iter_recipes(quote_plus(pattern.encode('utf-8')))
|
||||
|
||||
def fill_recipe(self, recipe, fields):
|
||||
if 'nb_person' in fields or 'instructions' in fields:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue