From 92add62a7cc01f6b2279c83eb1e31c3a212aef65 Mon Sep 17 00:00:00 2001 From: spl0k Date: Tue, 15 Oct 2013 10:32:35 +0200 Subject: [PATCH] Fix --- api/media.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/media.py b/api/media.py index de44326..2ed3b69 100755 --- a/api/media.py +++ b/api/media.py @@ -16,7 +16,8 @@ def stream_media(): return res maxBitRate, format, timeOffset, size, estimateContentLength = map(request.args.get, [ 'maxBitRate', 'format', 'timeOffset', 'size', 'estimateContentLength' ]) - format = format.lower() + if format: + format = format.lower() if format != 'raw': if maxBitRate: