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