Skip to content

Commit

Permalink
Fix path issue
Browse files Browse the repository at this point in the history
  • Loading branch information
s0md3v committed May 31, 2023
1 parent f9a2e1d commit 51664c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def detect_fps(input_path):
output = os.popen(f'ffprobe -v error -select_streams v -of default=noprint_wrappers=1:nokey=1 -show_entries stream=r_frame_rate "{input_path}"').read()
if "/" in output:
try:
return int(output.split("/")[0]) // int(output.split("/")[1]), output
return int(output.split("/")[0]) // int(output.split("/")[1]), output.removesuffix('\n')
except:
pass
return 30, 30
Expand Down

0 comments on commit 51664c6

Please sign in to comment.