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 {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
mp3File.SetDefaultEncoding(id3v2.EncodingUTF16)
|
||||||
if artist != "" {
|
if artist != "" {
|
||||||
mp3File.SetArtist(artist)
|
mp3File.SetArtist(artist)
|
||||||
}
|
}
|
||||||
|
@ -79,7 +80,9 @@ func main(){
|
||||||
Short: "show [file]",
|
Short: "show [file]",
|
||||||
Args: cobra.ExactArgs(1),
|
Args: cobra.ExactArgs(1),
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
show(args[0])
|
if err := show(args[0]); err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
cmd.AddCommand(showCmd, set())
|
cmd.AddCommand(showCmd, set())
|
||||||
|
|
Loading…
Reference in New Issue