From 6788fef471397c765b772de8f76f6456d3b3384b Mon Sep 17 00:00:00 2001 From: Sorrow446 <47045733+Sorrow446@users.noreply.github.com> Date: Tue, 5 Jul 2022 19:13:06 +0100 Subject: [PATCH] Forgot copyright, sorry. --- cli/main.go | 1 + cli/structs.go | 2 ++ structs.go | 1 + 3 files changed, 4 insertions(+) diff --git a/cli/main.go b/cli/main.go index 6dbe575..825d049 100644 --- a/cli/main.go +++ b/cli/main.go @@ -45,6 +45,7 @@ func parseTags(args *Args) (*Tags, error) { Artist: args.Artist, Comment: args.Comment, Composer: args.Composer, + Copyright: args.Copyright, Custom: args.Custom, Delete: args.Delete, DiskNumber: args.DiskNumber, diff --git a/cli/structs.go b/cli/structs.go index f238d7a..b4e3087 100644 --- a/cli/structs.go +++ b/cli/structs.go @@ -6,6 +6,7 @@ type Args struct { Artist string `arg:"--artist" help:"Write artist tag."` Comment string `arg:"--comment" help:"Write comment tag."` Composer string `arg:"--composer" help:"Write composer tag."` + Copyright string `arg:"--copyright" help:"Write copyright tag."` Cover string `arg:"--cover" help:"Path of cover to write. JPEG is recommended."` Custom map[string]string `arg:"--custom" help:"Write custom tags. Multiple tags with the same field name can be written.\n\t\t\t Example: \"--custom MYCUSTOMFIELD1=value1 MYCUSTOMFIELD2=value2\""` Delete []string `arg:"-d, --delete" help:"Tags to delete.\n\t\t\t Options: album, albumartist, artist, comment, composer, cover, disk, genre, label, title, track, year.\n\t\t\t Example: \"-d album albumartist\""` @@ -26,6 +27,7 @@ type Tags struct { Artist string Comment string Composer string + Copyright string Cover []byte Custom map[string]string Delete []string diff --git a/structs.go b/structs.go index faf7263..801fabd 100644 --- a/structs.go +++ b/structs.go @@ -6,6 +6,7 @@ type Tags struct { Artist string Comment string Composer string + Copyright string Cover []byte Custom map[string]string Delete []string