From 38fb60efca9e7b06da4b8ee694fe0e6d22e86c8f Mon Sep 17 00:00:00 2001 From: Somdev Sangwan Date: Wed, 31 May 2023 21:57:07 +0530 Subject: [PATCH] fix paths fr --- core/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/utils.py b/core/utils.py index ee2d422..9a1498e 100644 --- a/core/utils.py +++ b/core/utils.py @@ -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.removesuffix('\n') + return int(output.split(os.sep)[0]) // int(output.split(os.sep)[1]), output.removesuffix('\n') except: pass return 30, 30