just use Path

This commit is contained in:
Somdev Sangwan 2023-05-30 22:04:38 +05:30 committed by GitHub
parent a3617b1cff
commit cb2ff52678
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
run.py
View File

@ -164,7 +164,7 @@ def start():
video_name = os.path.basename(target_path)
video_name = os.path.splitext(video_name)[0]
output_dir = os.path.join(os.path.dirname(target_path),video_name)
os.makedirs(output_dir, exist_ok = True)
Path(output_dir).mkdir(exist_ok=True)
status("detecting video's FPS...")
fps = detect_fps(target_path)
if not args['keep_fps'] and fps > 30: