forked from 0x2620/pandora
strip container from profile
This commit is contained in:
parent
3cdd52912e
commit
c9c597b378
1 changed files with 2 additions and 1 deletions
|
@ -198,10 +198,11 @@ class VideoChunkForm(forms.Form):
|
||||||
@login_required_json
|
@login_required_json
|
||||||
def firefogg_upload(request):
|
def firefogg_upload(request):
|
||||||
profile = request.GET['profile']
|
profile = request.GET['profile']
|
||||||
|
if profile.endswith('.webm'):
|
||||||
|
profile = os.path.splitext(profile)[0]
|
||||||
oshash = request.GET['oshash']
|
oshash = request.GET['oshash']
|
||||||
#handle video upload
|
#handle video upload
|
||||||
if request.method == 'POST':
|
if request.method == 'POST':
|
||||||
|
|
||||||
#post next chunk
|
#post next chunk
|
||||||
if 'chunk' in request.FILES and oshash:
|
if 'chunk' in request.FILES and oshash:
|
||||||
f = get_object_or_404(models.File, oshash=oshash)
|
f = get_object_or_404(models.File, oshash=oshash)
|
||||||
|
|
Loading…
Reference in a new issue