Skip to content

Commit

Permalink
Update utilities.py
Browse files Browse the repository at this point in the history
clean string before conversion
  • Loading branch information
MMJv3 authored Oct 1, 2024
1 parent 5988aa2 commit eef5ec3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backgroundremover/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit eef5ec3

Please sign in to comment.