Vimeo's unit test

This commit is contained in:
Cqoicebordel 2015-01-31 19:49:54 +01:00
parent d20ddf9da1
commit 04fa31b7f4
3 changed files with 86 additions and 2 deletions

View file

@ -59,8 +59,7 @@ def response(resp):
url = base_url + videoid
title = p.unescape(extract_text(result.xpath(title_xpath)))
thumbnail = extract_text(result.xpath(content_xpath)[0])
publishedDate = parser.parse(extract_text(
result.xpath(publishedDate_xpath)[0]))
publishedDate = parser.parse(extract_text(result.xpath(publishedDate_xpath)[0]))
embedded = embedded_url.format(videoid=videoid)
# append result