Fix many CapVideo-related ConversionWarnings
This commit is contained in:
parent
9773f9d626
commit
1f310a3d33
14 changed files with 23 additions and 22 deletions
|
|
@ -23,6 +23,7 @@ import re
|
|||
|
||||
from weboob.tools.browser import BasePage, BrokenPageError
|
||||
from weboob.tools.capabilities.thumbnail import Thumbnail
|
||||
from weboob.tools.misc import to_unicode
|
||||
|
||||
from ..video import YoujizzVideo
|
||||
|
||||
|
|
@ -40,10 +41,10 @@ class IndexPage(BasePage):
|
|||
|
||||
video = YoujizzVideo(_id)
|
||||
|
||||
video.thumbnail = Thumbnail(span.find('.//img').attrib['src'])
|
||||
video.thumbnail = Thumbnail(unicode(span.find('.//img').attrib['src']))
|
||||
|
||||
title_el = self.parser.select(span, 'span#title1', 1)
|
||||
video.title = title_el.text.strip()
|
||||
video.title = to_unicode(title_el.text.strip())
|
||||
|
||||
time_span = self.parser.select(span, 'span.thumbtime span', 1)
|
||||
time_txt = time_span.text.strip().replace(';', ':')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue