From 910c6ac674abb28186ff50d891cbc930d5fa8df4 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 31 Oct 2011 11:46:59 +0100 Subject: [PATCH] why does the poster not exist? --- pandora/item/models.py | 2 +- pandora/templates/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 @@ - +