convert values to unicode
This commit is contained in:
parent
4ff134db63
commit
4c47e42dee
1 changed files with 3 additions and 3 deletions
|
|
@ -75,12 +75,12 @@ class VideoPage(BasePage):
|
|||
if len(video.title) > 0:
|
||||
video.title += u' — '
|
||||
video.title += part.text.strip()
|
||||
video.description = infos.find('DESCRIPTION').text
|
||||
video.description = unicode(infos.find('DESCRIPTION').text)
|
||||
|
||||
media = el.find('MEDIA')
|
||||
url = media.find('IMAGES').find('PETIT').text
|
||||
if url:
|
||||
video.thumbnail = Thumbnail(url)
|
||||
video.thumbnail = Thumbnail(unicode(url))
|
||||
else:
|
||||
video.thumbnail = NotAvailable
|
||||
lastest_format = None
|
||||
|
|
@ -88,7 +88,7 @@ class VideoPage(BasePage):
|
|||
if format.text is None:
|
||||
continue
|
||||
if format.tag == quality:
|
||||
video.url = format.text
|
||||
video.url = unicode(format.text)
|
||||
break
|
||||
lastest_format = format
|
||||
if not video.url and lastest_format is not None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue