remove striped poster

This commit is contained in:
j 2011-10-23 23:47:22 +02:00
parent 499b6ac204
commit ed6bcebae6
4 changed files with 3 additions and 2 deletions

View file

@ -947,7 +947,8 @@ class Item(models.Model):
if settings.USE_IMDB:
if len(self.itemId) == 7:
cmd += ['-i', self.itemId]
cmd += ['-o', self.oxdbId]
oxdbId = self.oxdbId or self.oxdb_id() or self.ItemId
cmd += ['-o', oxdbId]
else:
cmd += ['-i', self.itemId]
ox.makedirs(os.path.join(settings.MEDIA_ROOT,self.path()))

View file

@ -690,7 +690,7 @@ def poster(request, id, size=None):
if item.poster:
return image_to_response(item.poster, size)
else:
poster_path = os.path.join(settings.STATIC_ROOT, 'png/posterDark.48.png')
poster_path = os.path.join(settings.STATIC_ROOT, 'png/poster.png')
response = HttpFileResponse(poster_path, content_type='image/jpeg')
response['Cache-Control'] = 'no-cache'
return response

BIN
static/png/poster.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 180 B