Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

minor bug fixes

  • Loading branch information...
commit 0f958aa6acaaf2d1cd173a38b4f450dc3da6e8a1 1 parent cabd6a4
Daniele Procida authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 video/cms_plugins.py
View
4 video/cms_plugins.py
@@ -63,7 +63,7 @@ def render(self, context, instance, placeholder):
width = width - 5
if instance.use_description_as_caption:
- instance.caption = instance.caption or instance.image.description
+ instance.caption = instance.caption or instance.video.description
# given the width we want to show the video at, we have to find the most suitable (i.e. closest larger) video file version we have created
index = bisect.bisect_left(SIZES,width)
@@ -151,7 +151,7 @@ def render(self, context, instance, placeholder):
instance.all_formats.append(description)
instance.width = int(width)
- instance.dumb_height = instance.width * .75
+ instance.dumb_height = int(instance.width * .75)
instance.size = size
context.update({
'video':instance,
Please sign in to comment.
Something went wrong with that request. Please try again.