From c04e3d5e5641fa9eb3e3236521ab16a177a36fc6 Mon Sep 17 00:00:00 2001 From: Jamie Hardt Date: Sat, 29 Jun 2024 22:51:01 -0700 Subject: [PATCH] Tweaks --- mfbatch/commands.py | 6 +++++- pyproject.toml | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/mfbatch/commands.py b/mfbatch/commands.py index 17bc178..3a6a6ae 100644 --- a/mfbatch/commands.py +++ b/mfbatch/commands.py @@ -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: diff --git a/pyproject.toml b/pyproject.toml index 7a6e7e2..11c1341 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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'