From d4ecc0c5de4690c529d24afcdd6d285b2a2144f0 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Thu, 4 Nov 2010 22:16:04 +0100 Subject: [PATCH] fix parsing date, duration and title --- weboob/backends/ina/pages/video.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weboob/backends/ina/pages/video.py b/weboob/backends/ina/pages/video.py index 873a2d59..e073ac70 100644 --- a/weboob/backends/ina/pages/video.py +++ b/weboob/backends/ina/pages/video.py @@ -55,7 +55,7 @@ class VideoPage(BasePage): def get_date_and_duration(self): duration_regexp = re.compile('(.+) - (.+)min(.+)s') - el = self.document.getroot().cssselect('.bloc-video-edito h3')[0] + el = self.document.getroot().cssselect('div.bloc-produit-haut p.date')[0] if el is not None: m = duration_regexp.match(el.text.strip()) if m: @@ -67,7 +67,7 @@ class VideoPage(BasePage): return None def get_title(self): - el = self.document.getroot().cssselect('.bloc-video-edito h2')[0] + el = self.document.getroot().cssselect('div.bloc-produit-haut h1')[0] if el is not None: return unicode(el.text.strip()) else: