generated from bing/readnotes
fix bugs!
This commit is contained in:
parent
f959aa3fc3
commit
39c1422b25
|
@ -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…
Reference in New Issue