timeline, frame are optional

This commit is contained in:
j 2013-06-06 12:08:10 +00:00
commit b3b5278f94
4 changed files with 8 additions and 8 deletions

View file

@ -23,8 +23,8 @@ static_root = os.path.join(os.path.dirname(__file__), 'data')
def render_poster(data, poster):
title = ox.decode_html(data.get('title', ''))
id = data['id']
frame = data['frame']
timeline = data['timeline']
frame = data.get('frame')
timeline = data.get('timeline')
poster_width = 640
poster_height = 1024