diff --git a/modules/imdb/browser.py b/modules/imdb/browser.py index 156c6ed8..bb9816e3 100644 --- a/modules/imdb/browser.py +++ b/modules/imdb/browser.py @@ -98,12 +98,15 @@ class ImdbBrowser(BaseBrowser): country = NotAvailable note = NotAvailable short_description = NotAvailable + thumbnail_url = NotAvailable other_titles = [] roles = {} if not jres.has_key('title'): return title = unicode(jres['title'].strip()) + if jres.has_key('poster'): + thumbnail_url = unicode(jres['poster']) if jres.has_key('directors'): short_description = unicode(', '.join(jres['directors'])) if jres.has_key('runtime'): @@ -151,6 +154,7 @@ class ImdbBrowser(BaseBrowser): movie.roles = roles movie.short_description= short_description movie.all_release_dates= NotLoaded + movie.thumbnail_url = thumbnail_url return movie def get_person(self, id): diff --git a/weboob/capabilities/cinema.py b/weboob/capabilities/cinema.py index 4abbe070..a59bf866 100644 --- a/weboob/capabilities/cinema.py +++ b/weboob/capabilities/cinema.py @@ -38,6 +38,7 @@ class Movie(CapBaseObject): country = StringField('Origin country of the movie') note = StringField('Notation of the movie') roles = Field('Lists of Persons related to the movie indexed by roles',dict) + thumbnail_url = StringField('Url of movie thumbnail') def __init__(self, id, original_title): CapBaseObject.__init__(self, id)