s/preview_url/thumbnail_url/

This commit is contained in:
Christophe Benz 2010-04-27 19:00:26 +02:00 committed by Romain Bignon
commit aa1a2a2921
5 changed files with 9 additions and 9 deletions

View file

@ -42,7 +42,7 @@ class IndexPage(BasePage):
url = a.attrib['href']
_id = re.sub(r'/videos/(.+)\.html', r'\1', url)
preview_url = span.find('.//img').attrib['src']
thumbnail_url = span.find('.//img').attrib['src']
title1 = span.cssselect('span#title1')
if title1 is None:
@ -60,6 +60,6 @@ class IndexPage(BasePage):
yield Video(_id,
title=title,
duration=duration,
preview_url=preview_url,
thumbnail_url=thumbnail_url,
nsfw=True,
id2url=tools.id2url)