filter out scene strips
This commit is contained in:
parent
3943fcfdeb
commit
47c821c34a
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ def getPosters(movie_id, url_prefix='', limit=lambda x, y: 0.3 < x/y < 1):
|
||||||
pjson['url'] = url_prefix + poster._get_url()
|
pjson['url'] = url_prefix + poster._get_url()
|
||||||
pjson['width'] = poster.width
|
pjson['width'] = poster.width
|
||||||
pjson['height'] = poster.height
|
pjson['height'] = poster.height
|
||||||
if p.site not in ['other'] or limit(poster.width, poster.height):
|
if p.site not in ['other', 'wikipedia.org'] or limit(poster.width, poster.height):
|
||||||
posters[p.site].append(pjson)
|
posters[p.site].append(pjson)
|
||||||
for p in posters.keys():
|
for p in posters.keys():
|
||||||
if not posters[p]:
|
if not posters[p]:
|
||||||
|
|
Loading…
Reference in a new issue