From d7eb42f7d490168e5e004545f13cde655c6ba227 Mon Sep 17 00:00:00 2001 From: Florent Date: Wed, 15 Jan 2014 15:29:16 +0100 Subject: [PATCH] Fix cuisineaz preparation and cooking time (site changed) --- modules/cuisineaz/pages.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/cuisineaz/pages.py b/modules/cuisineaz/pages.py index 9fa3af11..e6b1f41b 100644 --- a/modules/cuisineaz/pages.py +++ b/modules/cuisineaz/pages.py @@ -98,10 +98,10 @@ class RecipePage(BasePage): l_spanprep = self.parser.select(main, 'span.preptime') if len(l_spanprep) > 0: - preparation_time = int(l_spanprep[0].text.split()[0]) + preparation_time = int(self.parser.tocleanstring(l_spanprep[0]).split()[0]) l_cooktime = self.parser.select(main, 'span.cooktime') if len(l_cooktime) > 0: - cooking_time = int(l_cooktime[0].text.split()[0]) + cooking_time = int(self.parser.tocleanstring(l_cooktime[0]).split()[0]) l_nbpers = self.parser.select(main, 'td#recipeQuantity span') if len(l_nbpers) > 0: rawnb = l_nbpers[0].text.split()[0]