From ab5ee589d249be3b343c13200ea67e9092b736d3 Mon Sep 17 00:00:00 2001 From: Florent Fourcot Date: Thu, 16 May 2013 23:12:02 +0200 Subject: [PATCH] Fix parsing on german pages --- modules/arte/pages.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/arte/pages.py b/modules/arte/pages.py index 230b73fc..08535298 100644 --- a/modules/arte/pages.py +++ b/modules/arte/pages.py @@ -38,10 +38,10 @@ class IndexPage(BasePage): videos = self.document.getroot().cssselect("div[class=video]") for div in videos: title = div.find('h2').find('a').text - m = re.match(r'/fr/videos/(.*)\.html', div.find('h2').find('a').attrib['href']) + m = re.match(r'/(fr|de)/videos/(.*)\.html', div.find('h2').find('a').attrib['href']) _id = '' if m: - _id = m.group(1) + _id = m.group(2) rating = rating_max = 0 rates = self.parser.select(div, 'div[class=rateContainer]', 1) for r in rates.findall('div'):