[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
|
country = NotAvailable
|
||||||
note = NotAvailable
|
note = NotAvailable
|
||||||
short_description = NotAvailable
|
short_description = NotAvailable
|
||||||
|
thumbnail_url = NotAvailable
|
||||||
other_titles = []
|
other_titles = []
|
||||||
roles = {}
|
roles = {}
|
||||||
|
|
||||||
if not jres.has_key('title'):
|
if not jres.has_key('title'):
|
||||||
return
|
return
|
||||||
title = unicode(jres['title'].strip())
|
title = unicode(jres['title'].strip())
|
||||||
|
if jres.has_key('poster'):
|
||||||
|
thumbnail_url = unicode(jres['poster'])
|
||||||
if jres.has_key('directors'):
|
if jres.has_key('directors'):
|
||||||
short_description = unicode(', '.join(jres['directors']))
|
short_description = unicode(', '.join(jres['directors']))
|
||||||
if jres.has_key('runtime'):
|
if jres.has_key('runtime'):
|
||||||
|
|
@ -151,6 +154,7 @@ class ImdbBrowser(BaseBrowser):
|
||||||
movie.roles = roles
|
movie.roles = roles
|
||||||
movie.short_description= short_description
|
movie.short_description= short_description
|
||||||
movie.all_release_dates= NotLoaded
|
movie.all_release_dates= NotLoaded
|
||||||
|
movie.thumbnail_url = thumbnail_url
|
||||||
return movie
|
return movie
|
||||||
|
|
||||||
def get_person(self, id):
|
def get_person(self, id):
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,7 @@ class Movie(CapBaseObject):
|
||||||
country = StringField('Origin country of the movie')
|
country = StringField('Origin country of the movie')
|
||||||
note = StringField('Notation of the movie')
|
note = StringField('Notation of the movie')
|
||||||
roles = Field('Lists of Persons related to the movie indexed by roles',dict)
|
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):
|
def __init__(self, id, original_title):
|
||||||
CapBaseObject.__init__(self, id)
|
CapBaseObject.__init__(self, id)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue