diff --git a/pandora/item/views.py b/pandora/item/views.py index 32cf7656..81adf6dd 100644 --- a/pandora/item/views.py +++ b/pandora/item/views.py @@ -580,7 +580,7 @@ def frame(request, id, size, position=None): frames = item.poster_frames() if frames: position = item.poster_frame - if position == -1: + if position == -1 or position > len(frames): position = int(len(frames)/2) position = frames[int(position)]['position'] elif item.poster_frame == -1 and item.sort.duration: