filter out scene strips

This commit is contained in:
j 2010-09-17 12:14:50 +02:00
parent 5c801ff41b
commit 3943fcfdeb

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 limit(poster.width, poster.height): if p.site not in ['other'] 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]: