This commit is contained in:
j 2017-07-26 15:36:59 +02:00
parent 0043eab61d
commit d75f94ffcb

View file

@ -874,7 +874,7 @@ def poster(request, id, size=None):
icon=item.icon.name, icon=item.icon.name,
json=item.get_json() json=item.get_json()
) )
if item.poster and os.path.exists(image.poster.path): if item.poster and os.path.exists(item.poster.path):
return image_to_response(item.poster, size) return image_to_response(item.poster, size)
else: else:
poster_path = os.path.join(settings.STATIC_ROOT, 'jpg/poster.jpg') poster_path = os.path.join(settings.STATIC_ROOT, 'jpg/poster.jpg')