From 1d666b356966534487e09157cfdb64dd31fc644c Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 6 Oct 2022 07:23:05 +0200 Subject: [PATCH] fix prev commit --- files/helpers/media.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/helpers/media.py b/files/helpers/media.py index 19f7be753..d7692506d 100644 --- a/files/helpers/media.py +++ b/files/helpers/media.py @@ -9,6 +9,7 @@ import time from .const import * import gevent import imagehash +from shutil import copyfile def process_files(): body = '' @@ -71,7 +72,7 @@ def process_video(file): if extension == 'webm': new = new.replace('.webm', '.mp4') - file.save(new) + copyfile(old, new) gevent.spawn(webm_to_mp4, old, new) else: subprocess.run(["ffmpeg", "-y", "-loglevel", "warning", "-i", old, "-map_metadata", "-1", "-c:v", "copy", "-c:a", "copy", new], check=True)