get defaults to None

This commit is contained in:
j 2011-04-23 01:34:01 +02:00
commit ad4ed30dd6
7 changed files with 12 additions and 12 deletions

View file

@ -528,7 +528,7 @@ def video(request, id, profile):
path = stream.video.path
content_type = path.endswith('.mp4') and 'video/mp4' or 'video/webm'
#server side cutting
t = request.GET.get('t', None)
t = request.GET.get('t')
if t:
t = map(float, t.split(','))
ext = os.path.splitext(profile)[1]