fix some conversion warnings
This commit is contained in:
parent
fc849995f4
commit
f2157c4cfb
6 changed files with 23 additions and 19 deletions
|
|
@ -70,7 +70,7 @@ class YoutubeBackend(BaseBackend, ICapVideo, ICapCollection):
|
|||
video.thumbnail = Thumbnail(to_unicode(entry.media.thumbnail[0].url.strip()))
|
||||
|
||||
if entry.author[0].name.text:
|
||||
video.author = entry.author[0].name.text.strip()
|
||||
video.author = to_unicode(entry.author[0].name.text.strip())
|
||||
if entry.media.name:
|
||||
video.author = to_unicode(entry.media.name.text.strip())
|
||||
return video
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue