why does the poster not exist?

This commit is contained in:
j 2011-10-31 11:46:59 +01:00
parent f2e0c2c701
commit 910c6ac674
2 changed files with 2 additions and 2 deletions

View file

@ -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:

View file

@ -7,7 +7,7 @@
<meta name="application-name" content="{{settings.SITENAME}}"/>
<link rel="icon" href="/static/png/icon64.png" sizes="32x32"/>
<link rel="icon" href="/static/png/icon64.png" sizes="48x48"/>
<meta name="application-url" content="{{settings.URL}}"/>
<meta name="application-url" content="http://{{settings.URL}}"/>
<script type='text/javascript'>
if (typeof(console) == 'undefined') {
console = {