[qcineoob] checkbox to show thumbnail in search

[allocine] fix empty productionYear problem
This commit is contained in:
Julien Veyssier 2013-03-26 16:00:31 +01:00
commit d6a0291deb
4 changed files with 23 additions and 4 deletions

View file

@ -229,7 +229,10 @@ class AllocineBrowser(BaseBrowser):
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']))
pyear = '????'
if 'productionYear' in m['movie']:
pyear = m['movie']['productionYear']
roles[m['activity']['$']].append(u'(%s) %s' % (pyear, m['movie']['originalTitle']))
person = Person(id, name)