Added -keep . Leaving temporally folder after encoding is done

This commit is contained in:
Zen 2020-03-16 08:39:14 +02:00
parent 0a3614c395
commit e798e92d96

View file

@ -82,7 +82,7 @@ class Av1an:
parser.add_argument('--scenes', '-s', type=str, default=self.scenes, help='File location for scenes')
parser.add_argument('--resume', '-r', help='Resuming previous session', action='store_true')
parser.add_argument('--no_check', '-n', help='Do not check encodings', action='store_true')
parser.add_argument('--keep', help='Keep temporally folder after encode', action='store_true')
# Pass command line args that were passed
self.args = parser.parse_args()
@ -485,6 +485,7 @@ class Av1an:
self.log('Concatenated\n')
# Delete temp folders
if not self.args.keep:
shutil.rmtree(self.temp_dir)
except Exception: