Remove tag when an empty string is passed

This commit is contained in:
Théophile Bastian 2022-07-05 11:34:54 +02:00
parent 74c133bcb9
commit 4c0766b2c1

View file

@ -92,6 +92,7 @@ def make_metaflac_args(in_args):
arg_name = VORBIS_ARG_NAME[arg] arg_name = VORBIS_ARG_NAME[arg]
out_args.append("--remove-tag={}".format(arg_name)) out_args.append("--remove-tag={}".format(arg_name))
if arg_val:
out_args.append("--set-tag={}={}".format(arg_name, arg_val)) out_args.append("--set-tag={}={}".format(arg_name, arg_val))
return out_args return out_args