Arte supports english too
This commit is contained in:
parent
70812252f1
commit
5de9dbd09b
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ 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|de)/videos/(.*)\.html', div.find('h2').find('a').attrib['href'])
|
||||
m = re.match(r'/(fr|de|en)/videos/(.*)\.html', div.find('h2').find('a').attrib['href'])
|
||||
_id = ''
|
||||
if m:
|
||||
_id = m.group(2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue