Fix many CapVideo-related ConversionWarnings

This commit is contained in:
Laurent Bachelier 2012-11-09 13:06:08 +01:00 committed by Romain Bignon
commit 1f310a3d33
14 changed files with 23 additions and 22 deletions

View file

@ -44,9 +44,9 @@ class SearchPage(BasePage):
video = InaVideo('boutique.%s' % id)
video.thumbnail = Thumbnail('http://boutique.ina.fr%s' % li.find('a').find('img').attrib['src'])
video.thumbnail = Thumbnail(u'http://boutique.ina.fr%s' % li.find('a').find('img').attrib['src'])
video.title = self.parser.select(li, 'p.titre', 1).text
video.title = unicode(self.parser.select(li, 'p.titre', 1).text)
date = self.parser.select(li, 'p.date', 1).text
day, month, year = [int(s) for s in date.split('/')]