fix bugs!

This commit is contained in:
huangkun 2024-10-09 11:52:54 +08:00
parent f959aa3fc3
commit 39c1422b25
1 changed files with 4 additions and 1 deletions

View File

@ -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())