[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(', ')
|
nationality = nationality.strip(', ')
|
||||||
if 'biography' in jres:
|
if 'biography' in jres:
|
||||||
biography = unicode(jres['biography'])
|
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 = Person(id, name)
|
||||||
person.real_name = real_name
|
person.real_name = real_name
|
||||||
|
|
|
||||||
|
|
@ -146,7 +146,7 @@ class PersonInfoFormatter(IFormatter):
|
||||||
for movie in lmovies:
|
for movie in lmovies:
|
||||||
result += ' * %s\n' % movie
|
result += ' * %s\n' % movie
|
||||||
if not empty(obj.short_biography):
|
if not empty(obj.short_biography):
|
||||||
result += '\n%sBiography%s\n' % (self.BOLD, self.NC)
|
result += '\n%sShort biography%s\n' % (self.BOLD, self.NC)
|
||||||
result += '%s' % obj.short_biography
|
result += '%s' % obj.short_biography
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -84,7 +84,6 @@ class Person(QFrame):
|
||||||
QApplication.setOverrideCursor(Qt.WaitCursor)
|
QApplication.setOverrideCursor(Qt.WaitCursor)
|
||||||
self.backend.fill_person(self.person, 'biography')
|
self.backend.fill_person(self.person, 'biography')
|
||||||
bio = self.person.biography
|
bio = self.person.biography
|
||||||
#bio = self.backend.get_person_biography(self.person.id)
|
|
||||||
self.ui.shortBioPlain.setPlainText(bio)
|
self.ui.shortBioPlain.setPlainText(bio)
|
||||||
self.ui.biographyLabel.setText('Full biography:')
|
self.ui.biographyLabel.setText('Full biography:')
|
||||||
self.ui.biographyButton.hide()
|
self.ui.biographyButton.hide()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue