From ef4067cbdd1f1bc62c03ba78d17b91af42718e82 Mon Sep 17 00:00:00 2001 From: Tudorel Oprisan <4553914+tdsotm@users.noreply.github.com> Date: Wed, 2 Oct 2024 17:16:18 +0100 Subject: [PATCH] fix: replaced pipe with empty string on helper function --- files/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers.py b/files/helpers.py index 5e78c592..a6914cb2 100644 --- a/files/helpers.py +++ b/files/helpers.py @@ -367,7 +367,7 @@ def media_file_info(input_file): input_file, ] stdout = run_command(cmd).get("out") - stream_size = sum([int(line) for line in stdout.split("\n") if line != ""]) + stream_size = sum([int(line.replace("|", "")) for line in stdout.split("\n") if line != ""]) video_bitrate = round((stream_size * 8 / 1024.0) / video_duration, 2) if "r_frame_rate" in video_info.keys():