From 3802c52ba054817728cb8cada6d5e3a4ab35f130 Mon Sep 17 00:00:00 2001 From: OleSTEEP Date: Fri, 24 Jan 2025 02:30:55 +0300 Subject: [PATCH] vnrecode: check if source path exist (lol) --- vnrecode/params.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vnrecode/params.py b/vnrecode/params.py index c102482..552036c 100644 --- a/vnrecode/params.py +++ b/vnrecode/params.py @@ -68,6 +68,9 @@ class Params: video_ext = config["VIDEO"]["Extension"] if args.config else args.v_ext video_codec = config["VIDEO"]["Codec"] if args.config else args.v_codec source = Path(args.source) + if not source.exists(): + print("Requested path does not exists. Exiting!") + exit(255) dest = Path(source.name + f"_compressed") return cls(