From eef5ec351553424d9f077c030cd473b0538901ac Mon Sep 17 00:00:00 2001 From: MMJv3 Date: Mon, 30 Sep 2024 20:12:02 -0400 Subject: [PATCH] Update utilities.py clean string before conversion --- backgroundremover/utilities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backgroundremover/utilities.py b/backgroundremover/utilities.py index 52be205..e14159a 100644 --- a/backgroundremover/utilities.py +++ b/backgroundremover/utilities.py @@ -89,7 +89,7 @@ def matte_key(output, file_path, file_path ] framerate_output = sp.check_output(cmd, universal_newlines=True) - total_frames = int(framerate_output) + total_frames = int(framerate_output.replace(',', '').strip()) if frame_limit != -1: total_frames = min(frame_limit, total_frames)