fix stills on poster

This commit is contained in:
j 2018-08-07 10:55:53 +01:00
parent 3fa099460b
commit 25f420b453

View file

@ -80,7 +80,7 @@ def render_poster(data, poster):
if duration:
for i in range(small_frames):
position = duration * (i + 1) / (small_frames + 1)
small_frame_image = get_frame(id, 96, round(position * 25) / 25)
small_frame_image = get_frame(data['id'], 96, round(position * 25) / 25)
if small_frame_image:
small_frame_image_ratio = small_frame_image.size[0] / small_frame_image.size[1]
if small_frame_ratio < small_frame_image_ratio: