vnrecode: check if source path exist (lol)

This commit is contained in:
OleSTEEP 2025-01-24 02:30:55 +03:00
parent 9c367e5249
commit 3802c52ba0

View file

@ -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(