diff --git a/modules/allrecipes/pages.py b/modules/allrecipes/pages.py index 220e9640..c2490433 100644 --- a/modules/allrecipes/pages.py +++ b/modules/allrecipes/pages.py @@ -18,7 +18,7 @@ # along with weboob. If not, see . -from weboob.capabilities.recipe import Recipe, Comment +from weboob.capabilities.recipe import Recipe from weboob.capabilities.base import NotAvailable, NotLoaded from weboob.tools.browser import BasePage diff --git a/modules/cuisineaz/pages.py b/modules/cuisineaz/pages.py index beda21d2..1066feaf 100644 --- a/modules/cuisineaz/pages.py +++ b/modules/cuisineaz/pages.py @@ -104,7 +104,12 @@ class RecipePage(BasePage): cooking_time = int(l_cooktime[0].text.split()[0]) l_nbpers = self.parser.select(main, 'td#recipeQuantity span') if len(l_nbpers) > 0: - nb_person = int(l_nbpers[0].text.split()[0]) + rawnb = l_nbpers[0].text.split()[0] + if '/' in rawnb: + nbs = rawnb.split('/') + nb_person = (int(nbs[0]) + int(nbs[1])) / 2 + else: + nb_person = int(rawnb) ingredients = [] l_ing = self.parser.select(main, 'div#ingredients li.ingredient')