vnrecode: check if source path exist (lol)
This commit is contained in:
parent
9c367e5249
commit
3802c52ba0
1 changed files with 3 additions and 0 deletions
|
@ -68,6 +68,9 @@ class Params:
|
||||||
video_ext = config["VIDEO"]["Extension"] if args.config else args.v_ext
|
video_ext = config["VIDEO"]["Extension"] if args.config else args.v_ext
|
||||||
video_codec = config["VIDEO"]["Codec"] if args.config else args.v_codec
|
video_codec = config["VIDEO"]["Codec"] if args.config else args.v_codec
|
||||||
source = Path(args.source)
|
source = Path(args.source)
|
||||||
|
if not source.exists():
|
||||||
|
print("Requested path does not exists. Exiting!")
|
||||||
|
exit(255)
|
||||||
dest = Path(source.name + f"_compressed")
|
dest = Path(source.name + f"_compressed")
|
||||||
|
|
||||||
return cls(
|
return cls(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue