From 253d72b3ba0081eaaade1552c1dff6f36934b1fa Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 18 Sep 2022 22:38:28 +0200 Subject: [PATCH] fix webm --- files/helpers/media.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/media.py b/files/helpers/media.py index be6e7dd09..1e5052a7e 100644 --- a/files/helpers/media.py +++ b/files/helpers/media.py @@ -64,7 +64,7 @@ def process_video(file): new = old + '.' + extension if file.filename.split('.')[-1].lower() == 'webm': - file.save(new) + os.rename(old, new) return f'{SITE_FULL}{new}' else: subprocess.run(["ffmpeg", "-y", "-loglevel", "warning", "-i", old, "-map_metadata", "-1", "-c:v", "copy", "-c:a", "copy", new], check=True)