forked from rDrama/rDrama
master
parent
1734137dcd
commit
4f02a72d29
|
@ -24,7 +24,7 @@ def process_audio(file):
|
||||||
|
|
||||||
def process_video(file):
|
def process_video(file):
|
||||||
old = f'/videos/{time.time()}'.replace('.','')
|
old = f'/videos/{time.time()}'.replace('.','')
|
||||||
extension = file.filename.split('.')[-1]
|
extension = file.filename.split('.')[-1].lower()
|
||||||
new = old + '.' + extension
|
new = old + '.' + extension
|
||||||
|
|
||||||
if extension == 'webm':
|
if extension == 'webm':
|
||||||
|
|
Loading…
Reference in New Issue