filter out scene strips

This commit is contained in:
j 2010-09-17 12:15:39 +02:00
parent 3943fcfdeb
commit 47c821c34a

View file

@ -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]: