sane-tag-music: allow deleting producer by setting it empty
This commit is contained in:
@@ -632,6 +632,8 @@ class Tagger:
|
||||
if self.manual_tags.tracknumber == [""]:
|
||||
# special case that `--trackno ""` can be used to delete the track number without `--force`ing all fields
|
||||
new_tags.tracknumber = []
|
||||
if self.manual_tags.producer == [""]:
|
||||
new_tags.producer = []
|
||||
new_tags.trim_fields()
|
||||
new_tags.cleanup_trackno()
|
||||
new_tags.expand_shorthands()
|
||||
@@ -742,7 +744,7 @@ def main():
|
||||
album=[args.album] if args.album else [],
|
||||
albumartist=[args.album_artist] if args.album_artist else [],
|
||||
artist=[args.artist] if args.artist else [],
|
||||
producer=[args.producer] if args.producer else [],
|
||||
producer=[args.producer] if args.producer is not None else [],
|
||||
title=[args.title] if args.title else [],
|
||||
tracknumber=[args.trackno] if args.trackno is not None else [],
|
||||
)
|
||||
|
Reference in New Issue
Block a user