This commit is contained in:
j 2016-04-29 22:53:31 +02:00
parent 28897ff79d
commit 7d07fef127

View file

@ -29,7 +29,7 @@ def getPosters(movie_id, url_prefix='', limit=lambda x, y: 0.3 < x/y < 1):
if p.site not in posters: if p.site not in posters:
posters[p.site] = [] posters[p.site] = []
poster = p.get() poster = p.get()
if poster and not poster.width or not poster.height: if poster and (not poster.width or not poster.height):
p.failed = True p.failed = True
p.status = "invalid image" p.status = "invalid image"
p.image.delete() p.image.delete()