only return valid image

This commit is contained in:
j 2016-04-29 22:49:08 +02:00
parent 1348916ba1
commit 28897ff79d

View file

@ -119,6 +119,7 @@ class PosterCache(models.Model):
self.status = "invalid image" self.status = "invalid image"
self.image.delete() self.image.delete()
self.save() self.save()
if not failed:
return self.image return self.image
def get_poster_urls(m): def get_poster_urls(m):