Browse Source

fix bugs!

master
huangkun 1 month ago
parent
commit
39c1422b25
  1. 5
      go/mp3/main.go

5
go/mp3/main.go

@ -34,6 +34,7 @@ func set()*cobra.Command{
if err != nil {
panic(err)
}
mp3File.SetDefaultEncoding(id3v2.EncodingUTF16)
if artist != "" {
mp3File.SetArtist(artist)
}
@ -79,7 +80,9 @@ func main(){
Short: "show [file]",
Args: cobra.ExactArgs(1),
Run: func(cmd *cobra.Command, args []string) {
show(args[0])
if err := show(args[0]); err != nil {
panic(err)
}
},
}
cmd.AddCommand(showCmd, set())

Loading…
Cancel
Save