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

@ -29,8 +29,8 @@ def render_poster(data, poster):
series = data.get('isSeries', False)
oxdb_id = data['oxdbId']
imdb_id = data['id']
frame = data['frame']
timeline = data['timeline']
frame = data.get('frame')
timeline = data.get('timeline')
def get_oxdb_color(oxdb_id, series=False):
i = int(round((int(oxdb_id[2:10], 16) * 762 / pow(2, 32))))