[cineoob] give roles informations in persons_in_common and movies_in_common, imdb and allocine adapted

This commit is contained in:
Julien Veyssier 2014-11-25 11:22:04 +01:00 committed by Romain Bignon
commit f87a8a685f
5 changed files with 49 additions and 7 deletions

View file

@ -157,7 +157,7 @@ class ImdbBrowser(Browser):
note = u'%s/10 (%s votes)' % (jres['imdbRating'], jres['imdbVotes'])
for r in ['Actors', 'Director', 'Writer']:
if '%s' % r in jres.keys():
roles['%s' % r] = jres['%s' % r].split(', ')
roles['%s' % r] = [('N/A',e) for e in jres['%s' % r].split(', ')]
movie = Movie(id, title)
movie.other_titles = other_titles