diff --git a/pkgs/additional/sane-scripts/src/sane-tag-music b/pkgs/additional/sane-scripts/src/sane-tag-music index 307fb4ad7..ff11a359e 100755 --- a/pkgs/additional/sane-scripts/src/sane-tag-music +++ b/pkgs/additional/sane-scripts/src/sane-tag-music @@ -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 [], )