Compare commits
2 commits
9c367e5249
...
ce62218cda
Author | SHA1 | Date | |
---|---|---|---|
ce62218cda | |||
3802c52ba0 |
2 changed files with 4 additions and 1 deletions
|
@ -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(
|
||||
|
|
|
@ -16,7 +16,7 @@ class Printer:
|
|||
file_count = 0
|
||||
for folder, folders, file in os.walk(source):
|
||||
file_count += len(file)
|
||||
self.bar = IncrementalBar('Compressing', max=file_count, suffix='[%(index)d/%(max)d] (%(percent).1f%%)')
|
||||
self.bar = IncrementalBar('Recoding', max=file_count, suffix='[%(index)d/%(max)d] (%(percent).1f%%)')
|
||||
self.bar.update()
|
||||
|
||||
@staticmethod
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue