lagmoellertim / unsilence

Console Interface and Library to remove silent parts of a media file 🔈
https://unsilence.readthedocs.io/
MIT License
555 stars 45 forks source link

Add location for TMP files #123

Open gar-onn opened 2 years ago

gar-onn commented 2 years ago

Hi,

I use my RAM as /tmp, which i would like to use for the temporary storage.

I fixed this by adding

parser.add_argument("--tmp", type=convert_to_path(should_exist=False, should_parents_exist=True), default=".tmp",
                        help="Path to where the tmp files should be")

to ParseArguments.py, and this

+  tmpdir=args.tmp
-  continual = Unsilence(args.input_file)
+  continual = Unsilence(args.input_file,temp_dir=tmpdir)

to EntryPoint.py.

Sorry I am not used to editing others people's git's