[imdb] explicit unicode conversion

This commit is contained in:
Julien Veyssier 2013-03-06 14:55:20 +01:00
commit cd8d2bfada
2 changed files with 6 additions and 6 deletions

View file

@ -77,7 +77,7 @@ class ImdbBrowser(BaseBrowser):
other_titles = []
roles = {}
title = u'%s'%jres['title'].strip()
title = unicode(jres['title'].strip())
if jres.has_key('runtime'):
dur_str = jres['runtime'][0].split(':')
if len(dur_str) == 1:
@ -106,7 +106,7 @@ class ImdbBrowser(BaseBrowser):
country += '%s, '%c
country = country[:-2]
if jres.has_key('plot_simple'):
description = u'%s'%jres['plot_simple']
description = unicode(jres['plot_simple'])
if jres.has_key('rating') and jres.has_key('rating_count'):
note = u'%s/10 (%s votes)'%(jres['rating'],jres['rating_count'])
for r in ['actor','director','writer']: