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:
|
if len(video.title) > 0:
|
||||||
video.title += u' — '
|
video.title += u' — '
|
||||||
video.title += part.text.strip()
|
video.title += part.text.strip()
|
||||||
video.description = infos.find('DESCRIPTION').text
|
video.description = unicode(infos.find('DESCRIPTION').text)
|
||||||
|
|
||||||
media = el.find('MEDIA')
|
media = el.find('MEDIA')
|
||||||
url = media.find('IMAGES').find('PETIT').text
|
url = media.find('IMAGES').find('PETIT').text
|
||||||
if url:
|
if url:
|
||||||
video.thumbnail = Thumbnail(url)
|
video.thumbnail = Thumbnail(unicode(url))
|
||||||
else:
|
else:
|
||||||
video.thumbnail = NotAvailable
|
video.thumbnail = NotAvailable
|
||||||
lastest_format = None
|
lastest_format = None
|
||||||
|
|
@ -88,7 +88,7 @@ class VideoPage(BasePage):
|
||||||
if format.text is None:
|
if format.text is None:
|
||||||
continue
|
continue
|
||||||
if format.tag == quality:
|
if format.tag == quality:
|
||||||
video.url = format.text
|
video.url = unicode(format.text)
|
||||||
break
|
break
|
||||||
lastest_format = format
|
lastest_format = format
|
||||||
if not video.url and lastest_format is not None:
|
if not video.url and lastest_format is not None:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue