remove striped poster
This commit is contained in:
parent
499b6ac204
commit
ed6bcebae6
4 changed files with 3 additions and 2 deletions
|
@ -947,7 +947,8 @@ class Item(models.Model):
|
||||||
if settings.USE_IMDB:
|
if settings.USE_IMDB:
|
||||||
if len(self.itemId) == 7:
|
if len(self.itemId) == 7:
|
||||||
cmd += ['-i', self.itemId]
|
cmd += ['-i', self.itemId]
|
||||||
cmd += ['-o', self.oxdbId]
|
oxdbId = self.oxdbId or self.oxdb_id() or self.ItemId
|
||||||
|
cmd += ['-o', oxdbId]
|
||||||
else:
|
else:
|
||||||
cmd += ['-i', self.itemId]
|
cmd += ['-i', self.itemId]
|
||||||
ox.makedirs(os.path.join(settings.MEDIA_ROOT,self.path()))
|
ox.makedirs(os.path.join(settings.MEDIA_ROOT,self.path()))
|
||||||
|
|
|
@ -690,7 +690,7 @@ def poster(request, id, size=None):
|
||||||
if item.poster:
|
if item.poster:
|
||||||
return image_to_response(item.poster, size)
|
return image_to_response(item.poster, size)
|
||||||
else:
|
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 = HttpFileResponse(poster_path, content_type='image/jpeg')
|
||||||
response['Cache-Control'] = 'no-cache'
|
response['Cache-Control'] = 'no-cache'
|
||||||
return response
|
return response
|
||||||
|
|
BIN
static/png/poster.png
Normal file
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 |
Loading…
Reference in a new issue