diff --git a/modules/allocine/browser.py b/modules/allocine/browser.py index 0fe42ef3..f062b660 100644 --- a/modules/allocine/browser.py +++ b/modules/allocine/browser.py @@ -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) diff --git a/weboob/applications/qcineoob/minimovie.py b/weboob/applications/qcineoob/minimovie.py index 411c99ff..17afc42b 100644 --- a/weboob/applications/qcineoob/minimovie.py +++ b/weboob/applications/qcineoob/minimovie.py @@ -40,6 +40,9 @@ class MiniMovie(QFrame): self.ui.shortDescLabel.setText(movie.short_description) self.ui.backendLabel.setText(backend.name) + if self.parent.ui.showTCheck.isChecked(): + self.gotThumbnail() + def gotThumbnail(self): if empty(self.movie.thumbnail_url): self.backend.fill_movie(self.movie, ('thumbnail_url')) diff --git a/weboob/applications/qcineoob/miniperson.py b/weboob/applications/qcineoob/miniperson.py index 52573485..f34430e2 100644 --- a/weboob/applications/qcineoob/miniperson.py +++ b/weboob/applications/qcineoob/miniperson.py @@ -46,6 +46,9 @@ class MiniPerson(QFrame): self.ui.shortDescLabel.hide() self.ui.backendLabel.setText(backend.name) + if self.parent.ui.showTCheck.isChecked(): + self.gotThumbnail() + def gotThumbnail(self): self.backend.fill_person(self.person, ('thumbnail_url')) if not empty(self.person.thumbnail_url): diff --git a/weboob/applications/qcineoob/ui/main_window.ui b/weboob/applications/qcineoob/ui/main_window.ui index ef2e0785..66d0b171 100644 --- a/weboob/applications/qcineoob/ui/main_window.ui +++ b/weboob/applications/qcineoob/ui/main_window.ui @@ -142,6 +142,16 @@ 0 + + + + <html><head/><body><p>may slow search process</p></body></html> + + + Show thumbnails + + + @@ -218,7 +228,7 @@ 0 0 708 - 261 + 260 @@ -239,8 +249,8 @@ 0 0 - 78 - 18 + 96 + 26