only return valid image
This commit is contained in:
parent
1348916ba1
commit
28897ff79d
1 changed files with 2 additions and 1 deletions
|
@ -119,6 +119,7 @@ class PosterCache(models.Model):
|
|||
self.status = "invalid image"
|
||||
self.image.delete()
|
||||
self.save()
|
||||
if not failed:
|
||||
return self.image
|
||||
|
||||
def get_poster_urls(m):
|
||||
|
|
Loading…
Reference in a new issue