This commit is contained in:
Jamie Hardt
2024-06-29 22:51:01 -07:00
parent 1a4c60e4a0
commit c04e3d5e56
2 changed files with 6 additions and 2 deletions

View File

@@ -137,12 +137,14 @@ they appear in the batchfile.
sys.stdout.write(f"{' ' * 30} \033[4m{l}\033[0m\n")
if interactive:
val = input('Write? [Y/n/:] > ')
val = input('Write? [Y/n/a/:] > ')
if val == '' or val.startswith('Y') or val.startswith('y'):
if self.dry_run:
print("DRY RUN would write metadata here.")
else:
sys.stdout.write("Writing metadata... ")
flac.write_metadata(line, self.env.metadatums)
sys.stdout.write("Complete!")
self.env.increment_all()
@@ -150,6 +152,8 @@ they appear in the batchfile.
self._handle_command(val.lstrip(self.COMMAND_LEADER),
lineno=-1)
continue
elif val == 'a':
print("Aborting write session...", file=sys.stdout)
break
else:

View File

@@ -8,7 +8,7 @@ readme = "README.md"
[tool.poetry.dependencies]
python = "^3.9"
tqdm = "^4.66.4"
anyreadline = "^0.1.1"
# anyreadline = "^0.1.1"
[tool.poetry.scripts]
mfbatch = 'mfbatch.__main__:main'