[allocine] roles in get_person
This commit is contained in:
parent
efc49bc596
commit
63c769305d
3 changed files with 7 additions and 2 deletions
|
|
@ -210,6 +210,12 @@ class AllocineBrowser(BaseBrowser):
|
|||
nationality = nationality.strip(', ')
|
||||
if 'biography' in jres:
|
||||
biography = unicode(jres['biography'])
|
||||
if 'participation' in jres:
|
||||
for m in jres['participation']:
|
||||
if m['activity']['$'] not in roles:
|
||||
roles[m['activity']['$']] = []
|
||||
roles[m['activity']['$']].append(u'(%s) %s' % (m['movie']['productionYear'], m['movie']['originalTitle']))
|
||||
|
||||
|
||||
person = Person(id, name)
|
||||
person.real_name = real_name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue