fix converting mp4

This commit is contained in:
user committed 2025-02-05 11:23:27 +03:00
1 parent 9adc4c2bd0
commit 2a97a9914d
3 files changed
+6 -4

No files matched your search

+1 -1
View File
@@ -211,7 +211,7 @@ async def s_api_v1_storage_get(request, file_hash=None):
elif content_type == 'video':
# Build a temp path for the video
tempfile_path += "_mp4" + (f"_{seconds_limit}" if seconds_limit else "")
tempfile_path += "_mp4" + (f"_{seconds_limit}" if seconds_limit else "") + ".mp4"
if not os.path.exists(tempfile_path):
try:
# Use ffmpeg to cut or convert to mp4