fall back to siteposter

This commit is contained in:
j 2018-09-12 15:56:10 +02:00
commit 2662a66aca
2 changed files with 19 additions and 1 deletions

View file

@ -1455,7 +1455,7 @@ class Item(models.Model):
self.clear_poster_cache(self.poster.path)
self.poster.delete()
if not self.poster:
if not self.poster or not os.path.exists(self.poster.path):
poster = self.make_siteposter()
url = self.prefered_poster_url()
if url: