[cineoob] give roles informations in persons_in_common and movies_in_common, imdb and allocine adapted
This commit is contained in:
parent
372da14347
commit
f87a8a685f
5 changed files with 49 additions and 7 deletions
|
|
@ -190,7 +190,8 @@ class AllocineBrowser(Browser):
|
|||
for cast in jres['castMember']:
|
||||
if cast['activity']['$'] not in roles:
|
||||
roles[cast['activity']['$']] = []
|
||||
roles[cast['activity']['$']].append(cast['person']['name'])
|
||||
person_to_append = (u'%s'%cast['person']['code'], cast['person']['name'])
|
||||
roles[cast['activity']['$']].append(person_to_append)
|
||||
|
||||
movie = Movie(id, title)
|
||||
movie.other_titles = other_titles
|
||||
|
|
@ -277,7 +278,8 @@ class AllocineBrowser(Browser):
|
|||
pyear = '????'
|
||||
if 'productionYear' in m['movie']:
|
||||
pyear = m['movie']['productionYear']
|
||||
roles[m['activity']['$']].append(u'(%s) %s' % (pyear, m['movie']['originalTitle']))
|
||||
movie_to_append = (u'%s' % (m['movie']['code']), u'(%s) %s' % (pyear, m['movie']['originalTitle']))
|
||||
roles[m['activity']['$']].append(movie_to_append)
|
||||
|
||||
|
||||
person = Person(id, name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue