mirror of
https://github.com/iluvcapra/mfbatch.git
synced 2025-12-31 08:50:51 +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")
|
||||
|
||||
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:
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user