[cineoob] new field thumbnail_url
This commit is contained in:
parent
f31dee9090
commit
7a917e879c
2 changed files with 5 additions and 0 deletions
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue