mirror of
https://github.com/iluvcapra/mfbatch.git
synced 2025-12-31 17:00:50 +00:00
Tweaks
This commit is contained in:
@@ -137,12 +137,14 @@ they appear in the batchfile.
|
|||||||
sys.stdout.write(f"{' ' * 30} \033[4m{l}\033[0m\n")
|
sys.stdout.write(f"{' ' * 30} \033[4m{l}\033[0m\n")
|
||||||
|
|
||||||
if interactive:
|
if interactive:
|
||||||
val = input('Write? [Y/n/:] > ')
|
val = input('Write? [Y/n/a/:] > ')
|
||||||
if val == '' or val.startswith('Y') or val.startswith('y'):
|
if val == '' or val.startswith('Y') or val.startswith('y'):
|
||||||
if self.dry_run:
|
if self.dry_run:
|
||||||
print("DRY RUN would write metadata here.")
|
print("DRY RUN would write metadata here.")
|
||||||
else:
|
else:
|
||||||
|
sys.stdout.write("Writing metadata... ")
|
||||||
flac.write_metadata(line, self.env.metadatums)
|
flac.write_metadata(line, self.env.metadatums)
|
||||||
|
sys.stdout.write("Complete!")
|
||||||
|
|
||||||
self.env.increment_all()
|
self.env.increment_all()
|
||||||
|
|
||||||
@@ -150,6 +152,8 @@ they appear in the batchfile.
|
|||||||
self._handle_command(val.lstrip(self.COMMAND_LEADER),
|
self._handle_command(val.lstrip(self.COMMAND_LEADER),
|
||||||
lineno=-1)
|
lineno=-1)
|
||||||
continue
|
continue
|
||||||
|
elif val == 'a':
|
||||||
|
print("Aborting write session...", file=sys.stdout)
|
||||||
|
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ readme = "README.md"
|
|||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = "^3.9"
|
python = "^3.9"
|
||||||
tqdm = "^4.66.4"
|
tqdm = "^4.66.4"
|
||||||
anyreadline = "^0.1.1"
|
# anyreadline = "^0.1.1"
|
||||||
|
|
||||||
[tool.poetry.scripts]
|
[tool.poetry.scripts]
|
||||||
mfbatch = 'mfbatch.__main__:main'
|
mfbatch = 'mfbatch.__main__:main'
|
||||||
|
|||||||
Reference in New Issue
Block a user