stop changing extension

remotes/1693176582716663532/tmp_refs/heads/watchparty
Aevann1 2022-10-25 22:01:38 +02:00
parent 100f546f67
commit 16c7c07e7d
1 changed files with 0 additions and 4 deletions

View File

@ -37,8 +37,6 @@ def process_audio(file):
name = f'/audio/{time.time()}'.replace('.','')
extension = file.filename.split('.')[-1].lower()
if extension not in ['aac', 'amr', 'flac', 'm4a', 'm4b', 'mp3', 'ogg', 'wav']:
extension = 'mp3'
name = name + '.' + extension
file.save(name)
@ -96,8 +94,6 @@ def process_video(file):
abort(413, f"Max video size is {MAX_VIDEO_SIZE_MB} MB ({MAX_VIDEO_SIZE_MB_PATRON} MB for paypigs)")
extension = file.filename.split('.')[-1].lower()
if extension not in ['avi', 'mp4', 'webm', 'm4v', 'mov', 'mkv']:
extension = 'mp4'
new = old + '.' + extension
if extension == 'webm':