diff --git a/pandora/item/models.py b/pandora/item/models.py index 2900f710..04ac0789 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 122fdb50..4ed5aa6f 100644 --- a/pandora/templates/index.html +++ b/pandora/templates/index.html @@ -7,7 +7,7 @@ - +