Skip to content

Commit

Permalink
fix: replaced pipe with empty string on helper function
Browse files Browse the repository at this point in the history
  • Loading branch information
tdsotm authored Oct 2, 2024
1 parent 8cc3513 commit ef4067c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit ef4067c

Please sign in to comment.