diff --git a/pandora/item/models.py b/pandora/item/models.py index 2900f7106..04ac0789e 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -291,7 +291,7 @@ class Item(models.Model): self.itemId = self.oxdbId #FIXME: move files to new id here - if self.poster: + if self.poster and os.path.exists(self.poster.path): self.poster_height = self.poster.height self.poster_width = self.poster.width else: diff --git a/pandora/templates/index.html b/pandora/templates/index.html index 122fdb508..4ed5aa6f0 100644 --- a/pandora/templates/index.html +++ b/pandora/templates/index.html @@ -7,7 +7,7 @@ - +