From c9c597b378ee8cc298289335dc90085e3a17cab8 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 5 Sep 2010 23:08:05 +0200 Subject: [PATCH] strip container from profile --- pandora/archive/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora/archive/views.py b/pandora/archive/views.py index da4c7985..ecacf1bf 100644 --- a/pandora/archive/views.py +++ b/pandora/archive/views.py @@ -198,10 +198,11 @@ class VideoChunkForm(forms.Form): @login_required_json def firefogg_upload(request): profile = request.GET['profile'] + if profile.endswith('.webm'): + profile = os.path.splitext(profile)[0] oshash = request.GET['oshash'] #handle video upload if request.method == 'POST': - #post next chunk if 'chunk' in request.FILES and oshash: f = get_object_or_404(models.File, oshash=oshash)